Home
last modified time | relevance | path

Searched refs:priv (Results 1 – 25 of 56) sorted by relevance

123

/tools/perf/util/
Dbpf-loader.c125 struct bpf_prog_priv *priv = _priv; in clear_prog_priv() local
127 cleanup_perf_probe_events(&priv->pev, 1); in clear_prog_priv()
128 zfree(&priv->insns_buf); in clear_prog_priv()
129 zfree(&priv->type_mapping); in clear_prog_priv()
130 zfree(&priv->sys_name); in clear_prog_priv()
131 zfree(&priv->evt_name); in clear_prog_priv()
132 free(priv); in clear_prog_priv()
322 struct bpf_prog_priv *priv = NULL; in config_bpf_program() local
337 priv = calloc(sizeof(*priv), 1); in config_bpf_program()
338 if (!priv) { in config_bpf_program()
[all …]
Darm-spe.c145 static void arm_spe_free_queue(void *priv) in arm_spe_free_queue() argument
147 struct arm_spe_queue *speq = priv; in arm_spe_free_queue()
162 arm_spe_free_queue(queues->queue_array[i].priv); in arm_spe_free_events()
163 queues->queue_array[i].priv = NULL; in arm_spe_free_events()
214 spe->pmu_type = auxtrace_info->priv[ARM_SPE_PMU_TYPE]; in arm_spe_process_auxtrace_info()
223 arm_spe_print_info(&auxtrace_info->priv[0]); in arm_spe_process_auxtrace_info()
Dintel-bts.c170 struct intel_bts_queue *btsq = queue->priv; in intel_bts_setup_queue()
179 queue->priv = btsq; in intel_bts_setup_queue()
544 struct intel_bts_queue *btsq = queue->priv; in intel_bts_process_tid_exit()
569 btsq = queue->priv; in intel_bts_process_queues()
697 static void intel_bts_free_queue(void *priv) in intel_bts_free_queue() argument
699 struct intel_bts_queue *btsq = priv; in intel_bts_free_queue()
714 intel_bts_free_queue(queues->queue_array[i].priv); in intel_bts_free_events()
715 queues->queue_array[i].priv = NULL; in intel_bts_free_events()
871 bts->pmu_type = auxtrace_info->priv[INTEL_BTS_PMU_TYPE]; in intel_bts_process_auxtrace_info()
872 bts->tc.time_shift = auxtrace_info->priv[INTEL_BTS_TIME_SHIFT]; in intel_bts_process_auxtrace_info()
[all …]
Dthread.h43 void *priv; member
117 return thread->priv; in thread__priv()
122 thread->priv = p; in thread__set_priv()
Dcomm.h17 void *priv; member
Ddata-convert-bt.c793 struct evsel_priv *priv = evsel->priv; in process_sample_event() local
801 if (WARN_ONCE(!priv, "Failed to setup all events.\n")) in process_sample_event()
804 event_class = priv->event_class; in process_sample_event()
1157 struct evsel_priv *priv; in add_event() local
1189 priv = malloc(sizeof(*priv)); in add_event()
1190 if (!priv) in add_event()
1193 priv->event_class = event_class; in add_event()
1194 evsel->priv = priv; in add_event()
1316 struct evsel_priv *priv; in cleanup_events() local
1318 priv = evsel->priv; in cleanup_events()
[all …]
Dcs-etm.c140 metadata = inode->priv; in cs_etm__get_magic()
154 metadata = inode->priv; in cs_etm__get_cpu()
227 idx = (int)(intptr_t)inode->priv; in cs_etm__clear_all_packet_queues()
304 idx = (int)(intptr_t)inode->priv; in cs_etm__etmq_get_traceid_queue()
323 inode->priv = (void *)(intptr_t)idx; in cs_etm__etmq_get_traceid_queue()
551 uintptr_t priv; in cs_etm__free_traceid_queues() local
557 priv = (uintptr_t)inode->priv; in cs_etm__free_traceid_queues()
558 idx = priv; in cs_etm__free_traceid_queues()
585 static void cs_etm__free_queue(void *priv) in cs_etm__free_queue() argument
587 struct cs_etm_queue *etmq = priv; in cs_etm__free_queue()
[all …]
Dintel-pt.c957 static void intel_pt_free_queue(void *priv) in intel_pt_free_queue() argument
959 struct intel_pt_queue *ptq = priv; in intel_pt_free_queue()
975 struct intel_pt_queue *ptq = queue->priv; in intel_pt_set_pid_tid_cpu()
1047 struct intel_pt_queue *ptq = queue->priv; in intel_pt_setup_queue()
1056 queue->priv = ptq; in intel_pt_setup_queue()
2079 struct intel_pt_queue *ptq = queue->priv; in intel_pt_enable_sync_switch()
2268 ptq = queue->priv; in intel_pt_process_queues()
2314 struct intel_pt_queue *ptq = queue->priv; in intel_pt_process_timeless_queues()
2344 return pt->queues.queue_array[i].priv; in intel_pt_cpu_to_ptq()
2348 return pt->queues.queue_array[i].priv; in intel_pt_cpu_to_ptq()
[all …]
Devsel_fprintf.h49 attr__fprintf_f attr__fprintf, void *priv);
Dmachine.h58 void *priv; member
249 void *priv);
252 void *priv);
Dintlist.h13 void *priv; member
Dperf_event_attr_fprintf.c84 ret += attr__fprintf(fp, _n, buf, priv);\
91 attr__fprintf_f attr__fprintf, void *priv) in perf_event_attr__fprintf() argument
Devsel_fprintf.c33 static int __print_attr__fprintf(FILE *fp, const char *name, const char *val, void *priv) in __print_attr__fprintf() argument
35 return comma_fprintf(fp, (bool *)priv, " %s: %s", name, val); in __print_attr__fprintf()
/tools/lib/api/fd/
Darray.c15 fda->priv = NULL; in fdarray__init()
22 void *priv; in fdarray__grow() local
24 size_t psize = sizeof(fda->priv[0]) * nr_alloc; in fdarray__grow()
31 priv = realloc(fda->priv, psize); in fdarray__grow()
32 if (priv == NULL) { in fdarray__grow()
39 fda->priv = priv; in fdarray__grow()
62 free(fda->priv); in fdarray__exit()
105 fda->priv[nr] = fda->priv[fd]; in fdarray__filter()
Darray.h27 } *priv; member
/tools/perf/ui/browsers/
Dheader.c19 unsigned long offset = (unsigned long)browser->priv; in ui_browser__argv_write()
51 offset = (unsigned long)menu->priv; in list_menu__run()
53 menu->priv = (void *)offset; in list_menu__run()
56 offset = (unsigned long)menu->priv; in list_menu__run()
59 menu->priv = (void *)offset; in list_menu__run()
Dannotate.c42 struct map_symbol *ms = browser->priv; in browser__annotation()
153 struct map_symbol *ms = ab->b.priv; in annotate_browser__draw_current_jump()
305 struct map_symbol *ms = browser->b.priv; in annotate_browser__calc_percent()
413 struct map_symbol *ms = browser->b.priv; in annotate_browser__callq()
611 struct map_symbol *ms = browser->priv; in annotate_browser__show()
665 struct map_symbol *ms = browser->b.priv; in annotate_browser__run()
908 .priv = &ms, in symbol__tui_annotate()
/tools/perf/arch/arm/util/
Dcs-etm.c583 info->priv[*offset + CS_ETMV4_TRCCONFIGR] = in cs_etm_get_metadata()
586 info->priv[*offset + CS_ETMV4_TRCTRACEIDR] = in cs_etm_get_metadata()
589 info->priv[*offset + CS_ETMV4_TRCIDR0] = in cs_etm_get_metadata()
592 info->priv[*offset + CS_ETMV4_TRCIDR1] = in cs_etm_get_metadata()
595 info->priv[*offset + CS_ETMV4_TRCIDR2] = in cs_etm_get_metadata()
598 info->priv[*offset + CS_ETMV4_TRCIDR8] = in cs_etm_get_metadata()
601 info->priv[*offset + CS_ETMV4_TRCAUTHSTATUS] = in cs_etm_get_metadata()
611 info->priv[*offset + CS_ETM_ETMCR] = cs_etm_get_config(itr); in cs_etm_get_metadata()
613 info->priv[*offset + CS_ETM_ETMTRACEIDR] = in cs_etm_get_metadata()
616 info->priv[*offset + CS_ETM_ETMCCER] = in cs_etm_get_metadata()
[all …]
/tools/perf/arch/arm/annotate/
Dinstructions.c15 struct arm_annotate *arm = arch->priv; in arm__associate_instruction_ops()
52 arch->priv = arm; in arm__annotate_init()
/tools/perf/tests/
Dvmlinux-kallsyms.c198 pair->priv = 1; in test__vmlinux_matches_kallsyms()
217 if (pair == NULL || pair->priv) in test__vmlinux_matches_kallsyms()
232 pair->priv = 1; in test__vmlinux_matches_kallsyms()
241 if (!map->priv) { in test__vmlinux_matches_kallsyms()
/tools/perf/arch/x86/util/
Dintel-pt.c374 auxtrace_info->priv[INTEL_PT_PMU_TYPE] = intel_pt_pmu->type; in intel_pt_info_fill()
375 auxtrace_info->priv[INTEL_PT_TIME_SHIFT] = tc.time_shift; in intel_pt_info_fill()
376 auxtrace_info->priv[INTEL_PT_TIME_MULT] = tc.time_mult; in intel_pt_info_fill()
377 auxtrace_info->priv[INTEL_PT_TIME_ZERO] = tc.time_zero; in intel_pt_info_fill()
378 auxtrace_info->priv[INTEL_PT_CAP_USER_TIME_ZERO] = cap_user_time_zero; in intel_pt_info_fill()
379 auxtrace_info->priv[INTEL_PT_TSC_BIT] = tsc_bit; in intel_pt_info_fill()
380 auxtrace_info->priv[INTEL_PT_NORETCOMP_BIT] = noretcomp_bit; in intel_pt_info_fill()
381 auxtrace_info->priv[INTEL_PT_HAVE_SCHED_SWITCH] = ptr->have_sched_switch; in intel_pt_info_fill()
382 auxtrace_info->priv[INTEL_PT_SNAPSHOT_MODE] = ptr->snapshot_mode; in intel_pt_info_fill()
383 auxtrace_info->priv[INTEL_PT_PER_CPU_MMAPS] = per_cpu_mmaps; in intel_pt_info_fill()
[all …]
Dintel-bts.c95 auxtrace_info->priv[INTEL_BTS_PMU_TYPE] = intel_bts_pmu->type; in intel_bts_info_fill()
96 auxtrace_info->priv[INTEL_BTS_TIME_SHIFT] = tc.time_shift; in intel_bts_info_fill()
97 auxtrace_info->priv[INTEL_BTS_TIME_MULT] = tc.time_mult; in intel_bts_info_fill()
98 auxtrace_info->priv[INTEL_BTS_TIME_ZERO] = tc.time_zero; in intel_bts_info_fill()
99 auxtrace_info->priv[INTEL_BTS_CAP_USER_TIME_ZERO] = cap_user_time_zero; in intel_bts_info_fill()
100 auxtrace_info->priv[INTEL_BTS_SNAPSHOT_MODE] = btsr->snapshot_mode; in intel_bts_info_fill()
/tools/perf/arch/arm64/annotate/
Dinstructions.c71 struct arm64_annotate *arm = arch->priv; in arm64__associate_instruction_ops()
111 arch->priv = arm; in arm64__annotate_init()
/tools/virtio/linux/
Dvirtio.h25 void *priv; member
/tools/lib/traceevent/
Devent-parse.h49 void *priv; member
78 void *priv; member
409 typedef char *(tep_func_resolver_t)(void *priv,
434 tep_func_resolver_t *func, void *priv);

123