/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() 101 npos = fdarray__add(fda, entry->fd, entry->events, from->priv[pos].flags); in fdarray__dup_entry_from() [all …]
|
D | array.h | 24 struct priv { struct 30 } *priv; member
|
/tools/lib/ |
D | list_sort.c | 15 static struct list_head *merge(void *priv, list_cmp_func_t cmp, in merge() argument 22 if (cmp(priv, a, b) <= 0) { in merge() 51 static void merge_final(void *priv, list_cmp_func_t cmp, struct list_head *head, in merge_final() argument 59 if (cmp(priv, a, b) <= 0) { in merge_final() 89 cmp(priv, b, b); in merge_final() 184 void list_sort(void *priv, struct list_head *head, list_cmp_func_t cmp) in list_sort() argument 224 a = merge(priv, cmp, b, a); in list_sort() 246 list = merge(priv, cmp, pending, list); in list_sort() 250 merge_final(priv, cmp, head, pending, list); in list_sort()
|
/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()
|
/tools/testing/selftests/bpf/ |
D | test_loader.c | 59 struct test_subspec priv; member 90 free(spec->priv.name); in free_test_spec() 92 free(spec->priv.expect_msgs); in free_test_spec() 95 spec->priv.name = NULL; in free_test_spec() 97 spec->priv.expect_msgs = NULL; in free_test_spec() 203 spec->priv.expect_failure = true; in parse_test_spec() 206 spec->priv.expect_failure = false; in parse_test_spec() 224 err = push_msg(msg, &spec->priv); in parse_test_spec() 236 err = parse_retval(val, &spec->priv.retval, "__retval"); in parse_test_spec() 239 spec->priv.execute = true; in parse_test_spec() [all …]
|
/tools/perf/arch/x86/util/ |
D | iostat.c | 326 evsel->priv = list->rps[evsel->core.idx / metrics_count]; in iostat_event_group() 379 if (rp != evsel->priv) { in iostat_list() 380 rp = evsel->priv; in iostat_list() 392 if (rp != evsel->priv) { in iostat_release() 393 rp = evsel->priv; in iostat_release() 394 zfree(&evsel->priv); in iostat_release() 403 struct iio_root_port *rp = evlist->selected->priv; in iostat_prefix() 433 u8 die = ((struct iio_root_port *)evsel->priv)->die; in iostat_print_metric() 462 perf_device = evlist->selected->priv; in iostat_print_counters() 463 if (perf_device && perf_device != counter->priv) { in iostat_print_counters()
|
D | intel-pt.c | 384 auxtrace_info->priv[INTEL_PT_PMU_TYPE] = intel_pt_pmu->type; in intel_pt_info_fill() 385 auxtrace_info->priv[INTEL_PT_TIME_SHIFT] = tc.time_shift; in intel_pt_info_fill() 386 auxtrace_info->priv[INTEL_PT_TIME_MULT] = tc.time_mult; in intel_pt_info_fill() 387 auxtrace_info->priv[INTEL_PT_TIME_ZERO] = tc.time_zero; in intel_pt_info_fill() 388 auxtrace_info->priv[INTEL_PT_CAP_USER_TIME_ZERO] = cap_user_time_zero; in intel_pt_info_fill() 389 auxtrace_info->priv[INTEL_PT_TSC_BIT] = tsc_bit; in intel_pt_info_fill() 390 auxtrace_info->priv[INTEL_PT_NORETCOMP_BIT] = noretcomp_bit; in intel_pt_info_fill() 391 auxtrace_info->priv[INTEL_PT_HAVE_SCHED_SWITCH] = ptr->have_sched_switch; in intel_pt_info_fill() 392 auxtrace_info->priv[INTEL_PT_SNAPSHOT_MODE] = ptr->snapshot_mode; in intel_pt_info_fill() 393 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/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/util/ |
D | machine.h | 66 void *priv; member 268 typedef int (*machine__dso_t)(struct dso *dso, struct machine *machine, void *priv); 271 void *priv); 273 typedef int (*machine__map_t)(struct map *map, void *priv); 275 void *priv); 279 void *priv); 282 void *priv);
|
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 | map.h | 23 bool priv:1; in DECLARE_RC_STRUCT() local 108 return RC_CHK_ACCESS(map)->priv; in map__priv() 282 static inline void map__set_priv(struct map *map, int priv) in map__set_priv() argument 284 RC_CHK_ACCESS(map)->priv = priv; in map__set_priv()
|
D | comm.h | 17 void *priv; member
|
D | data-convert-bt.c | 802 struct evsel_priv *priv = evsel->priv; in process_sample_event() local 810 if (WARN_ONCE(!priv, "Failed to setup all events.\n")) in process_sample_event() 813 event_class = priv->event_class; in process_sample_event() 1166 struct evsel_priv *priv; in add_event() local 1198 priv = malloc(sizeof(*priv)); in add_event() 1199 if (!priv) in add_event() 1202 priv->event_class = event_class; in add_event() 1203 evsel->priv = priv; in add_event() 1325 struct evsel_priv *priv; in cleanup_events() local 1327 priv = evsel->priv; in cleanup_events() [all …]
|
D | cs-etm.c | 156 metadata = inode->priv; in cs_etm__get_magic() 170 metadata = inode->priv; in cs_etm__get_cpu() 233 if (inode->priv) in cs_etm__map_trace_id() 237 inode->priv = cpu_metadata; in cs_etm__map_trace_id() 354 cpu_data = inode->priv; in cs_etm__process_aux_output_hw_id() 458 idx = (int)(intptr_t)inode->priv; in cs_etm__clear_all_packet_queues() 537 idx = (int)(intptr_t)inode->priv; in cs_etm__etmq_get_traceid_queue() 556 inode->priv = (void *)(intptr_t)idx; in cs_etm__etmq_get_traceid_queue() 790 uintptr_t priv; in cs_etm__free_traceid_queues() local 796 priv = (uintptr_t)inode->priv; in cs_etm__free_traceid_queues() [all …]
|
D | thread.h | 63 void *priv; in DECLARE_RC_STRUCT() local 83 void thread__set_priv_destructor(void (*destructor)(void *priv)); 263 return RC_CHK_ACCESS(thread)->priv; in thread__priv() 268 RC_CHK_ACCESS(thread)->priv = p; in thread__set_priv()
|
D | dlfilter.c | 68 d_al->priv = NULL; in al_to_d_al() 159 return d_al_p->size >= offsetof(struct perf_dlfilter_al, priv) + sizeof(d_al_p->priv); in has_priv() 189 d_al_p->priv = memdup(&al, sizeof(al)); in dlfilter__resolve_address() 201 if (!has_priv(d_al_p) || !d_al_p->priv) in dlfilter__al_cleanup() 204 al = d_al_p->priv; in dlfilter__al_cleanup() 206 d_al_p->priv = NULL; in dlfilter__al_cleanup()
|
D | evsel_fprintf.h | 49 attr__fprintf_f attr__fprintf, void *priv);
|
D | hisi-ptt.c | 180 ptt->pmu_type = auxtrace_info->priv[0]; in hisi_ptt_process_auxtrace_info() 190 hisi_ptt_print_info(auxtrace_info->priv[0]); in hisi_ptt_process_auxtrace_info()
|
/tools/perf/arch/arm/util/ |
D | cs-etm.c | 737 cs_etm_save_ete_header(&info->priv[*offset], itr, cpu); in cs_etm_get_metadata() 744 cs_etm_save_etmv4_header(&info->priv[*offset], itr, cpu); in cs_etm_get_metadata() 752 info->priv[*offset + CS_ETM_ETMCR] = cs_etm_get_config(itr); in cs_etm_get_metadata() 754 info->priv[*offset + CS_ETM_ETMTRACEIDR] = in cs_etm_get_metadata() 757 info->priv[*offset + CS_ETM_ETMCCER] = in cs_etm_get_metadata() 760 info->priv[*offset + CS_ETM_ETMIDR] = in cs_etm_get_metadata() 770 info->priv[*offset + CS_ETM_MAGIC] = magic; in cs_etm_get_metadata() 771 info->priv[*offset + CS_ETM_CPU] = cpu; in cs_etm_get_metadata() 772 info->priv[*offset + CS_ETM_NR_TRC_PARAMS] = nr_trc_params; in cs_etm_get_metadata() 820 info->priv[CS_HEADER_VERSION] = CS_HEADER_CURRENT_VERSION; in cs_etm_info_fill() [all …]
|
/tools/include/linux/ |
D | list_sort.h | 13 void list_sort(void *priv, struct list_head *head, list_cmp_func_t cmp);
|
/tools/testing/nvdimm/test/ |
D | ndtest.c | 720 static int ndtest_dimm_register(struct ndtest_priv *priv, in ndtest_dimm_register() argument 723 struct device *dev = &priv->pdev.dev; in ndtest_dimm_register() 732 dimm->nvdimm = nvdimm_create(priv->bus, dimm, in ndtest_dimm_register() 736 dev_err(dev, "Error creating DIMM object for %pOF\n", priv->dn); in ndtest_dimm_register() 741 &priv->pdev.dev, in ndtest_dimm_register() 943 struct ndtest_priv *priv; in ndtest_init() local 946 priv = kzalloc(sizeof(*priv), GFP_KERNEL); in ndtest_init() 947 if (!priv) { in ndtest_init() 952 INIT_LIST_HEAD(&priv->resources); in ndtest_init() 953 pdev = &priv->pdev; in ndtest_init() [all …]
|
/tools/perf/trace/beauty/ |
D | perf_event_open.c | 54 static int attr__fprintf(FILE *fp __maybe_unused, const char *name, const char *val, void *priv) in attr__fprintf() argument 56 struct attr_fprintf_args *args = priv; in attr__fprintf()
|
/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 | 87 void *priv; member
|