Home
last modified time | relevance | path

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

123

/tools/lib/api/fd/
Darray.c16 fda->priv = NULL; in fdarray__init()
23 struct priv *priv; in fdarray__grow() local
25 size_t psize = sizeof(fda->priv[0]) * nr_alloc; in fdarray__grow()
32 priv = realloc(fda->priv, psize); in fdarray__grow()
33 if (priv == NULL) { in fdarray__grow()
39 memset(&priv[fda->nr_alloc], 0, sizeof(fda->priv[0]) * nr); in fdarray__grow()
43 fda->priv = priv; in fdarray__grow()
66 free(fda->priv); in fdarray__exit()
86 fda->priv[fda->nr].flags = flags; in fdarray__add()
112 if (!(fda->priv[fd].flags & fdarray_flag__nonfilterable)) in fdarray__filter()
Darray.h24 struct priv { struct
30 } *priv; member
/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
331 priv = calloc(sizeof(*priv), 1); in config_bpf_program()
332 if (!priv) { in config_bpf_program()
[all …]
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()
880 bts->pmu_type = auxtrace_info->priv[INTEL_BTS_PMU_TYPE]; in intel_bts_process_auxtrace_info()
881 bts->tc.time_shift = auxtrace_info->priv[INTEL_BTS_TIME_SHIFT]; in intel_bts_process_auxtrace_info()
[all …]
Dthread.h52 void *priv; member
130 return thread->priv; in thread__priv()
135 thread->priv = p; in thread__set_priv()
Dmachine.h59 void *priv; member
255 typedef int (*machine__dso_t)(struct dso *dso, struct machine *machine, void *priv);
258 void *priv);
261 void *priv);
264 void *priv);
Dcomm.h17 void *priv; member
Dcs-etm.c138 metadata = inode->priv; in cs_etm__get_magic()
152 metadata = inode->priv; in cs_etm__get_cpu()
178 metadata = inode->priv; in cs_etm__get_pid_fmt()
266 idx = (int)(intptr_t)inode->priv; in cs_etm__clear_all_packet_queues()
343 idx = (int)(intptr_t)inode->priv; in cs_etm__etmq_get_traceid_queue()
362 inode->priv = (void *)(intptr_t)idx; in cs_etm__etmq_get_traceid_queue()
580 uintptr_t priv; in cs_etm__free_traceid_queues() local
586 priv = (uintptr_t)inode->priv; in cs_etm__free_traceid_queues()
587 idx = priv; in cs_etm__free_traceid_queues()
614 static void cs_etm__free_queue(void *priv) in cs_etm__free_queue() argument
[all …]
Ddata-convert-bt.c796 struct evsel_priv *priv = evsel->priv; in process_sample_event() local
804 if (WARN_ONCE(!priv, "Failed to setup all events.\n")) in process_sample_event()
807 event_class = priv->event_class; in process_sample_event()
1160 struct evsel_priv *priv; in add_event() local
1192 priv = malloc(sizeof(*priv)); in add_event()
1193 if (!priv) in add_event()
1196 priv->event_class = event_class; in add_event()
1197 evsel->priv = priv; in add_event()
1319 struct evsel_priv *priv; in cleanup_events() local
1321 priv = evsel->priv; in cleanup_events()
[all …]
Darm-spe.c511 struct arm_spe_queue *speq = queue->priv; in arm_spe__setup_queue()
522 queue->priv = speq; in arm_spe__setup_queue()
599 struct arm_spe_queue *speq = queue->priv; in arm_spe_set_pid_tid_cpu()
639 speq = queue->priv; in arm_spe_process_queues()
680 struct arm_spe_queue *speq = queue->priv; in arm_spe_process_timeless_queues()
796 static void arm_spe_free_queue(void *priv) in arm_spe_free_queue() argument
798 struct arm_spe_queue *speq = priv; in arm_spe_free_queue()
816 arm_spe_free_queue(queues->queue_array[i].priv); in arm_spe_free_events()
817 queues->queue_array[i].priv = NULL; in arm_spe_free_events()
1068 spe->pmu_type = auxtrace_info->priv[ARM_SPE_PMU_TYPE]; in arm_spe_process_auxtrace_info()
[all …]
Devsel_fprintf.h48 attr__fprintf_f attr__fprintf, void *priv);
Dintel-pt.c1289 static void intel_pt_free_queue(void *priv) in intel_pt_free_queue() argument
1291 struct intel_pt_queue *ptq = priv; in intel_pt_free_queue()
1312 struct intel_pt_queue *ptq = queue->priv; in intel_pt_first_timestamp()
1322 struct intel_pt_queue *ptq = queue->priv; in intel_pt_set_pid_tid_cpu()
1398 struct intel_pt_queue *ptq = queue->priv; in intel_pt_setup_queue()
1407 queue->priv = ptq; in intel_pt_setup_queue()
2433 struct intel_pt_queue *ptq = queue->priv; in intel_pt_enable_sync_switch()
2623 ptq = queue->priv; in intel_pt_process_queues()
2669 struct intel_pt_queue *ptq = queue->priv; in intel_pt_process_timeless_queues()
2719 ptq = queue->priv; in intel_pt_process_timeless_sample()
[all …]
Dintlist.h13 void *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()
/tools/perf/arch/x86/util/
Diostat.c325 evsel->priv = list->rps[evsel->core.idx / metrics_count]; in iostat_event_group()
378 if (rp != evsel->priv) { in iostat_list()
379 rp = evsel->priv; in iostat_list()
391 if (rp != evsel->priv) { in iostat_release()
392 rp = evsel->priv; in iostat_release()
393 free(evsel->priv); in iostat_release()
402 struct iio_root_port *rp = evlist->selected->priv; in iostat_prefix()
432 u8 die = ((struct iio_root_port *)evsel->priv)->die; in iostat_print_metric()
461 perf_device = evlist->selected->priv; in iostat_print_counters()
462 if (perf_device && perf_device != counter->priv) { in iostat_print_counters()
Dintel-pt.c383 auxtrace_info->priv[INTEL_PT_PMU_TYPE] = intel_pt_pmu->type; in intel_pt_info_fill()
384 auxtrace_info->priv[INTEL_PT_TIME_SHIFT] = tc.time_shift; in intel_pt_info_fill()
385 auxtrace_info->priv[INTEL_PT_TIME_MULT] = tc.time_mult; in intel_pt_info_fill()
386 auxtrace_info->priv[INTEL_PT_TIME_ZERO] = tc.time_zero; in intel_pt_info_fill()
387 auxtrace_info->priv[INTEL_PT_CAP_USER_TIME_ZERO] = cap_user_time_zero; in intel_pt_info_fill()
388 auxtrace_info->priv[INTEL_PT_TSC_BIT] = tsc_bit; in intel_pt_info_fill()
389 auxtrace_info->priv[INTEL_PT_NORETCOMP_BIT] = noretcomp_bit; in intel_pt_info_fill()
390 auxtrace_info->priv[INTEL_PT_HAVE_SCHED_SWITCH] = ptr->have_sched_switch; in intel_pt_info_fill()
391 auxtrace_info->priv[INTEL_PT_SNAPSHOT_MODE] = ptr->snapshot_mode; in intel_pt_info_fill()
392 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/arm/util/
Dcs-etm.c674 cs_etm_save_etmv4_header(&info->priv[*offset], itr, cpu); in cs_etm_get_metadata()
675 info->priv[*offset + CS_ETE_TRCDEVARCH] = in cs_etm_get_metadata()
684 cs_etm_save_etmv4_header(&info->priv[*offset], itr, cpu); in cs_etm_get_metadata()
692 info->priv[*offset + CS_ETM_ETMCR] = cs_etm_get_config(itr); in cs_etm_get_metadata()
694 info->priv[*offset + CS_ETM_ETMTRACEIDR] = in cs_etm_get_metadata()
697 info->priv[*offset + CS_ETM_ETMCCER] = in cs_etm_get_metadata()
700 info->priv[*offset + CS_ETM_ETMIDR] = in cs_etm_get_metadata()
710 info->priv[*offset + CS_ETM_MAGIC] = magic; in cs_etm_get_metadata()
711 info->priv[*offset + CS_ETM_CPU] = cpu; in cs_etm_get_metadata()
712 info->priv[*offset + CS_ETM_NR_TRC_PARAMS] = nr_trc_params; in cs_etm_get_metadata()
[all …]
/tools/perf/tests/
Dvmlinux-kallsyms.c197 pair->priv = 1; in test__vmlinux_matches_kallsyms()
216 if (pair == NULL || pair->priv) in test__vmlinux_matches_kallsyms()
231 pair->priv = 1; in test__vmlinux_matches_kallsyms()
240 if (!map->priv) { in test__vmlinux_matches_kallsyms()
/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/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/testing/nvdimm/test/
Dndtest.c854 static int ndtest_dimm_register(struct ndtest_priv *priv, in ndtest_dimm_register() argument
857 struct device *dev = &priv->pdev.dev; in ndtest_dimm_register()
868 dimm->nvdimm = nvdimm_create(priv->bus, dimm, in ndtest_dimm_register()
872 dev_err(dev, "Error creating DIMM object for %pOF\n", priv->dn); in ndtest_dimm_register()
877 &priv->pdev.dev, in ndtest_dimm_register()
1083 struct ndtest_priv *priv; in ndtest_init() local
1086 priv = kzalloc(sizeof(*priv), GFP_KERNEL); in ndtest_init()
1087 if (!priv) { in ndtest_init()
1092 INIT_LIST_HEAD(&priv->resources); in ndtest_init()
1093 pdev = &priv->pdev; in ndtest_init()
[all …]
/tools/testing/selftests/arm64/signal/
Dtest_signals.h82 void *priv; member
/tools/testing/selftests/kmod/
Dkmod.sh482 local priv=$(eval $cmd)
485 if [ "$priv" = "$unpriv" ] || \
488 echo "${FUNCNAME[0]}: FAIL, $name visible to unpriv: '$priv' vs '$unpriv'" >&2
/tools/virtio/linux/
Dvirtio.h26 void *priv; member

123