/linux-6.1.9/tools/perf/tests/ |
D | pfm.c | 34 int nr_events; in test__pfm_events() member 38 .nr_events = 0, in test__pfm_events() 42 .nr_events = 1, in test__pfm_events() 46 .nr_events = 2, in test__pfm_events() 50 .nr_events = 0, in test__pfm_events() 54 .nr_events = 2, in test__pfm_events() 58 .nr_events = 0, in test__pfm_events() 62 .nr_events = 1, in test__pfm_events() 77 table[i].nr_events); in test__pfm_events() 95 int nr_events; in test__pfm_group() member [all …]
|
D | expand-cgroup.c | 20 int nr_events; in test_expand_events() local 31 nr_events = evlist->core.nr_entries; in test_expand_events() 32 ev_name = calloc(nr_events, sizeof(*ev_name)); in test_expand_events() 57 if (evlist->core.nr_entries != nr_events * nr_cgrps) { in test_expand_events() 64 if (strcmp(evsel->name, ev_name[i % nr_events])) { in test_expand_events() 67 i, evsel->name, ev_name[i % nr_events]); in test_expand_events() 70 if (strcmp(evsel->cgrp->name, cgrp_name[i / nr_events])) { in test_expand_events() 73 i, evsel->cgrp->name, cgrp_name[i / nr_events]); in test_expand_events() 77 if ((i % nr_events) == 0) { in test_expand_events() 94 out: for (i = 0; i < nr_events; i++) in test_expand_events()
|
D | openat-syscall-tp-fields.c | 42 int err = -1, i, nr_events = 0, nr_polls = 0; in test__syscall_openat_tp_fields() local 90 int before = nr_events; in test__syscall_openat_tp_fields() 105 ++nr_events; in test__syscall_openat_tp_fields() 131 if (nr_events == before) in test__syscall_openat_tp_fields()
|
D | mmap-basic.c | 41 unsigned int nr_events[nsyscalls], in test__basic_mmap() local 103 nr_events[i] = 0; in test__basic_mmap() 144 nr_events[evsel->core.idx]++; in test__basic_mmap() 152 if (nr_events[evsel->core.idx] != expected_nr_events[evsel->core.idx]) { in test__basic_mmap() 155 evsel__name(evsel), nr_events[evsel->core.idx]); in test__basic_mmap()
|
D | perf-record.c | 68 int total_events = 0, nr_events[PERF_RECORD_MAX] = { 0, }; in test__PERF_RECORD() local 181 nr_events[type]++; in test__PERF_RECORD() 299 if (nr_events[PERF_RECORD_COMM] > 1 + !!found_coreutils_mmap) { in test__PERF_RECORD() 304 if (nr_events[PERF_RECORD_COMM] == 0) { in test__PERF_RECORD()
|
/linux-6.1.9/fs/ |
D | aio.c | 120 unsigned nr_events; member 487 static int aio_setup_ring(struct kioctx *ctx, unsigned int nr_events) in aio_setup_ring() argument 497 nr_events += 2; /* 1 is required, 2 for good luck */ in aio_setup_ring() 500 size += sizeof(struct io_event) * nr_events; in aio_setup_ring() 513 nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) in aio_setup_ring() 568 ctx->nr_events = nr_events; /* trusted copy */ in aio_setup_ring() 571 ring->nr = nr_events; /* user copy */ in aio_setup_ring() 727 static struct kioctx *ioctx_alloc(unsigned nr_events) in ioctx_alloc() argument 737 unsigned int max_reqs = nr_events; in ioctx_alloc() 748 nr_events = max(nr_events, num_possible_cpus() * 4); in ioctx_alloc() [all …]
|
/linux-6.1.9/drivers/s390/net/ |
D | fsm.c | 18 int nr_events, const fsm_node *tmpl, int tmpl_len, gfp_t order) in init_fsm() argument 41 f->nr_events = nr_events; in init_fsm() 47 m = kcalloc(nr_states*nr_events, sizeof(fsm_function_t), order); in init_fsm() 58 (tmpl[i].cond_event >= nr_events) ) { in init_fsm() 62 (long)tmpl[i].cond_event, (long)f->nr_events); in init_fsm()
|
D | fsm.h | 45 int nr_events; member 112 int nr_states, int nr_events, const fsm_node *tmpl, 150 (event >= fi->f->nr_events) ) { in fsm_event() 153 (long)fi->f->nr_events); in fsm_event()
|
/linux-6.1.9/drivers/firmware/efi/ |
D | tpm.c | 84 if (final_tbl->nr_events != 0) { in efi_tpm_eventlog_init() 87 + sizeof(final_tbl->nr_events); in efi_tpm_eventlog_init() 90 final_tbl->nr_events, in efi_tpm_eventlog_init()
|
/linux-6.1.9/tools/perf/util/ |
D | ordered-events.c | 24 ++oe->nr_events; in queue_event() 27 pr_oe_time2(timestamp, "queue_event nr_events %u\n", oe->nr_events); in queue_event() 189 oe->nr_events--; in ordered_events__delete() 237 ui_progress__init(&prog, oe->nr_events, "Processing time ordered events..."); in do_flush() 281 if (oe->nr_events == 0) in __ordered_events__flush() 321 str[how], oe->nr_events); in __ordered_events__flush() 334 str[how], oe->nr_events); in __ordered_events__flush()
|
D | events_stats.h | 35 u32 nr_events[PERF_RECORD_HEADER_MAX]; member
|
D | ordered-events.h | 49 unsigned int nr_events; member
|
/linux-6.1.9/drivers/firmware/efi/libstub/ |
D | tpm.c | 132 if (final_events_table && final_events_table->nr_events) { in efi_retrieve_tpm2_eventlog() 137 int i = final_events_table->nr_events; in efi_retrieve_tpm2_eventlog() 141 sizeof(final_events_table->nr_events); in efi_retrieve_tpm2_eventlog()
|
/linux-6.1.9/arch/arm64/kvm/ |
D | pmu-emul.c | 845 int base, i, nr_events; in kvm_pmu_get_pmceid() local 867 nr_events = kvm_pmu_event_mask(vcpu->kvm) + 1; in kvm_pmu_get_pmceid() 874 if (nr_events >= (0x4000 + base + 32)) { in kvm_pmu_get_pmceid() 1051 int nr_events; in kvm_arm_pmu_v3_set_attr() local 1053 nr_events = kvm_pmu_event_mask(kvm) + 1; in kvm_arm_pmu_v3_set_attr() 1060 if (((u32)filter.base_event + filter.nevents) > nr_events || in kvm_arm_pmu_v3_set_attr() 1073 kvm->arch.pmu_filter = bitmap_alloc(nr_events, GFP_KERNEL_ACCOUNT); in kvm_arm_pmu_v3_set_attr() 1086 bitmap_zero(kvm->arch.pmu_filter, nr_events); in kvm_arm_pmu_v3_set_attr() 1088 bitmap_fill(kvm->arch.pmu_filter, nr_events); in kvm_arm_pmu_v3_set_attr()
|
/linux-6.1.9/tools/perf/bench/ |
D | evlist-open-close.c | 25 static int nr_events = 1; variable 51 OPT_INTEGER('n', "nr-events", &nr_events, 254 evstr = bench__repeat_event_string(event_string, nr_events); in bench_evlist_open_close()
|
/linux-6.1.9/tools/lib/traceevent/ |
D | event-parse-api.c | 21 if (tep && tep->events && index < tep->nr_events) in tep_get_event() 49 return tep->nr_events; in tep_get_events_count()
|
D | event-parse-local.h | 54 int nr_events; member
|
/linux-6.1.9/tools/verification/dot2/ |
D | dot2c.py | 161 nr_events = self.events.__len__() 168 for y in range(nr_events): 173 if y != nr_events-1:
|
D | dot2k.py | 101 nr_events = self.events.__len__() 108 main_c = main_c.replace("NR_EVENTS", str(nr_events))
|
/linux-6.1.9/block/ |
D | disk-events.c | 174 int nr_events = 0, i; in disk_event_uevent() local 178 envp[nr_events++] = disk_uevents[i]; in disk_event_uevent() 180 if (nr_events) in disk_event_uevent()
|
/linux-6.1.9/drivers/pci/controller/ |
D | pcie-iproc-msi.c | 327 u32 eq, head, tail, nr_events; in iproc_msi_handler() local 356 nr_events = (tail < head) ? in iproc_msi_handler() 358 if (!nr_events) in iproc_msi_handler() 362 while (nr_events--) { in iproc_msi_handler()
|
/linux-6.1.9/tools/perf/ |
D | builtin-sched.c | 65 unsigned long nr_events; member 212 unsigned long nr_events; member 364 unsigned long idx = task->nr_events; in get_new_event() 370 task->nr_events++; in get_new_event() 371 size = sizeof(struct sched_atom *) * task->nr_events; in get_new_event() 382 if (!task->nr_events) in last_event() 385 return task->atoms[task->nr_events - 1]; in last_event() 502 task->nr, task->comm, task->pid, task->nr_events); in print_task_traces() 646 for (i = 0; i < this_task->nr_events; i++) { in thread_func() 1852 sched->nr_events = session->evlist->stats.nr_events[0]; in perf_sched__read_events() [all …]
|
D | builtin-kwork.c | 1242 (kwork->nr_events != 0)) { in print_skipped_events() 1245 (double)kwork->nr_events * 100.0, in print_skipped_events() 1263 if ((kwork->nr_lost_events != 0) && (kwork->nr_events != 0)) { in print_bad_events() 1266 (double)kwork->nr_events * 100.0, in print_bad_events() 1267 kwork->nr_lost_events, kwork->nr_events, in print_bad_events() 1408 kwork->nr_events = session->evlist->stats.nr_events[0]; in perf_kwork__read_events() 1410 kwork->nr_lost_chunks = session->evlist->stats.nr_events[PERF_RECORD_LOST]; in perf_kwork__read_events() 1693 .nr_events = 0, in cmd_kwork()
|
/linux-6.1.9/tools/perf/ui/stdio/ |
D | hist.c | 905 u32 total = stats->nr_events[0]; in events_stats__fprintf() 913 if (skip_empty && !stats->nr_events[i]) in events_stats__fprintf() 918 name, stats->nr_events[i], in events_stats__fprintf() 919 100.0 * stats->nr_events[i] / total); in events_stats__fprintf() 922 name, stats->nr_events[i]); in events_stats__fprintf()
|
/linux-6.1.9/tools/perf/ui/browsers/ |
D | hists.c | 701 evsel->evlist->stats.nr_events[PERF_RECORD_LOST])) { in hist_browser__handle_hotkey() 703 evsel->evlist->stats.nr_events[PERF_RECORD_LOST]; in hist_browser__handle_hotkey() 2950 static int evsel__hists_browse(struct evsel *evsel, int nr_events, const char *helpline, in evsel__hists_browse() argument 3052 if (nr_events == 1) in evsel__hists_browse() 3420 unsigned long nr_events = hists->stats.nr_samples; in perf_evsel_menu__write() local 3436 nr_events += pos_hists->stats.nr_samples; in perf_evsel_menu__write() 3440 nr_events = convert_unit(nr_events, &unit); in perf_evsel_menu__write() 3441 printed = scnprintf(bf, sizeof(bf), "%lu%c%s%s", nr_events, in perf_evsel_menu__write() 3445 nr_events = evsel->evlist->stats.nr_events[PERF_RECORD_LOST]; in perf_evsel_menu__write() 3446 if (nr_events != 0) { in perf_evsel_menu__write() [all …]
|