/tools/lib/api/fd/ |
D | array.c | 16 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()
|
D | array.h | 24 struct priv { struct 30 } *priv; member
|
/tools/perf/util/ |
D | bpf-loader.c | 125 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 …]
|
D | intel-bts.c | 170 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 …]
|
D | thread.h | 52 void *priv; member 130 return thread->priv; in thread__priv() 135 thread->priv = p; in thread__set_priv()
|
D | machine.h | 59 void *priv; member 253 typedef int (*machine__dso_t)(struct dso *dso, struct machine *machine, void *priv); 256 void *priv); 259 void *priv); 262 void *priv);
|
D | comm.h | 17 void *priv; member
|
D | arm-spe.c | 402 struct arm_spe_queue *speq = queue->priv; in arm_spe__setup_queue() 413 queue->priv = speq; in arm_spe__setup_queue() 490 struct arm_spe_queue *speq = queue->priv; in arm_spe_set_pid_tid_cpu() 530 speq = queue->priv; in arm_spe_process_queues() 571 struct arm_spe_queue *speq = queue->priv; in arm_spe_process_timeless_queues() 691 static void arm_spe_free_queue(void *priv) in arm_spe_free_queue() argument 693 struct arm_spe_queue *speq = priv; in arm_spe_free_queue() 711 arm_spe_free_queue(queues->queue_array[i].priv); in arm_spe_free_events() 712 queues->queue_array[i].priv = NULL; in arm_spe_free_events() 951 spe->pmu_type = auxtrace_info->priv[ARM_SPE_PMU_TYPE]; in arm_spe_process_auxtrace_info() [all …]
|
D | data-convert-bt.c | 796 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 …]
|
D | cs-etm.c | 140 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 …]
|
D | evsel_fprintf.h | 48 attr__fprintf_f attr__fprintf, void *priv);
|
D | intel-pt.c | 1098 static void intel_pt_free_queue(void *priv) in intel_pt_free_queue() argument 1100 struct intel_pt_queue *ptq = priv; in intel_pt_free_queue() 1115 struct intel_pt_queue *ptq = queue->priv; in intel_pt_set_pid_tid_cpu() 1187 struct intel_pt_queue *ptq = queue->priv; in intel_pt_setup_queue() 1196 queue->priv = ptq; in intel_pt_setup_queue() 2157 struct intel_pt_queue *ptq = queue->priv; in intel_pt_enable_sync_switch() 2347 ptq = queue->priv; in intel_pt_process_queues() 2393 struct intel_pt_queue *ptq = queue->priv; in intel_pt_process_timeless_queues() 2443 ptq = queue->priv; in intel_pt_process_timeless_sample() 2473 return pt->queues.queue_array[i].priv; in intel_pt_cpu_to_ptq() [all …]
|
D | intlist.h | 13 void *priv; member
|
D | perf_event_attr_fprintf.c | 86 ret += attr__fprintf(fp, _n, buf, priv);\ 93 attr__fprintf_f attr__fprintf, void *priv) in perf_event_attr__fprintf() argument
|
/tools/perf/ui/browsers/ |
D | header.c | 19 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()
|
D | annotate.c | 42 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, target_ms; in annotate_browser__callq() 614 struct map_symbol *ms = browser->priv; in annotate_browser__show() 668 struct map_symbol *ms = browser->b.priv; in annotate_browser__run() 906 .priv = ms, in symbol__tui_annotate()
|
/tools/perf/arch/arm/util/ |
D | cs-etm.c | 585 info->priv[*offset + CS_ETMV4_TRCCONFIGR] = in cs_etm_get_metadata() 588 info->priv[*offset + CS_ETMV4_TRCTRACEIDR] = in cs_etm_get_metadata() 591 info->priv[*offset + CS_ETMV4_TRCIDR0] = in cs_etm_get_metadata() 594 info->priv[*offset + CS_ETMV4_TRCIDR1] = in cs_etm_get_metadata() 597 info->priv[*offset + CS_ETMV4_TRCIDR2] = in cs_etm_get_metadata() 600 info->priv[*offset + CS_ETMV4_TRCIDR8] = in cs_etm_get_metadata() 603 info->priv[*offset + CS_ETMV4_TRCAUTHSTATUS] = in cs_etm_get_metadata() 613 info->priv[*offset + CS_ETM_ETMCR] = cs_etm_get_config(itr); in cs_etm_get_metadata() 615 info->priv[*offset + CS_ETM_ETMTRACEIDR] = in cs_etm_get_metadata() 618 info->priv[*offset + CS_ETM_ETMCCER] = in cs_etm_get_metadata() [all …]
|
/tools/perf/arch/arm/annotate/ |
D | instructions.c | 15 struct arm_annotate *arm = arch->priv; in arm__associate_instruction_ops() 52 arch->priv = arm; in arm__annotate_init()
|
/tools/perf/tests/ |
D | vmlinux-kallsyms.c | 197 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/x86/util/ |
D | intel-pt.c | 383 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 …]
|
D | intel-bts.c | 95 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/ |
D | instructions.c | 71 struct arm64_annotate *arm = arch->priv; in arm64__associate_instruction_ops() 111 arch->priv = arm; in arm64__annotate_init()
|
/tools/testing/selftests/arm64/signal/ |
D | test_signals.h | 82 void *priv; member
|
/tools/virtio/linux/ |
D | virtio.h | 26 void *priv; member
|
/tools/testing/selftests/kmod/ |
D | kmod.sh | 482 local priv=$(eval $cmd) 485 if [ "$priv" = "$unpriv" ] || \ 488 echo "${FUNCNAME[0]}: FAIL, $name visible to unpriv: '$priv' vs '$unpriv'" >&2
|