Home
last modified time | relevance | path

Searched refs:nr_events (Results 1 – 25 of 52) sorted by relevance

123

/linux-6.6.21/tools/perf/tests/
Dpfm.c34 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 …]
Dexpand-cgroup.c20 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 (!evsel__name_is(evsel, 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()
Dopenat-syscall-tp-fields.c43 int err = -1, i, nr_events = 0, nr_polls = 0; in test__syscall_openat_tp_fields() local
91 int before = nr_events; in test__syscall_openat_tp_fields()
106 ++nr_events; in test__syscall_openat_tp_fields()
132 if (nr_events == before) in test__syscall_openat_tp_fields()
Dmmap-basic.c43 unsigned int nr_events[nsyscalls], in test__basic_mmap() local
105 nr_events[i] = 0; in test__basic_mmap()
146 nr_events[evsel->core.idx]++; in test__basic_mmap()
154 if (nr_events[evsel->core.idx] != expected_nr_events[evsel->core.idx]) { in test__basic_mmap()
157 evsel__name(evsel), nr_events[evsel->core.idx]); in test__basic_mmap()
Dperf-record.c70 int total_events = 0, nr_events[PERF_RECORD_MAX] = { 0, }; in test__PERF_RECORD() local
183 nr_events[type]++; in test__PERF_RECORD()
301 if (nr_events[PERF_RECORD_COMM] > 1 + !!found_coreutils_mmap) { in test__PERF_RECORD()
306 if (nr_events[PERF_RECORD_COMM] == 0) { in test__PERF_RECORD()
/linux-6.6.21/fs/
Daio.c120 unsigned nr_events; member
491 static int aio_setup_ring(struct kioctx *ctx, unsigned int nr_events) in aio_setup_ring() argument
501 nr_events += 2; /* 1 is required, 2 for good luck */ in aio_setup_ring()
504 size += sizeof(struct io_event) * nr_events; in aio_setup_ring()
517 nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) in aio_setup_ring()
572 ctx->nr_events = nr_events; /* trusted copy */ in aio_setup_ring()
575 ring->nr = nr_events; /* user copy */ in aio_setup_ring()
736 static struct kioctx *ioctx_alloc(unsigned nr_events) in ioctx_alloc() argument
746 unsigned int max_reqs = nr_events; in ioctx_alloc()
757 nr_events = max(nr_events, num_possible_cpus() * 4); in ioctx_alloc()
[all …]
/linux-6.6.21/drivers/s390/net/
Dfsm.c18 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()
Dfsm.h45 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.6.21/drivers/firmware/efi/
Dtpm.c84 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.6.21/tools/perf/util/
Dordered-events.c24 ++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()
Devents_stats.h35 u32 nr_events[PERF_RECORD_HEADER_MAX]; member
Dordered-events.h49 unsigned int nr_events; member
Dhist.c301 he_stat->nr_events += 1; in he_stat__add_period()
311 dest->nr_events += src->nr_events; in he_stat__add_stat()
317 he_stat->nr_events = (he_stat->nr_events * 7) / 8; in he_stat__decay()
733 .nr_events = 1, in __hists__add_entry()
2122 hists->stats.nr_non_filtered_samples += h->stat.nr_events; in hists__remove_entry_filter()
2349 ++stats->nr_events[0]; in events_stats__inc()
2350 ++stats->nr_events[type]; in events_stats__inc()
2752 u64 nr_events = hists->stats.total_period; in __hists__scnprintf_title() local
2762 nr_events = hists->stats.total_non_filtered_period; in __hists__scnprintf_title()
2776 nr_events += pos_hists->stats.total_non_filtered_period; in __hists__scnprintf_title()
[all …]
Dannotate.h283 int nr_events; member
319 return (symbol_conf.show_total_period ? 12 : 7) * notes->nr_events; in annotation__pcnt_width()
/linux-6.6.21/drivers/firmware/efi/libstub/
Dtpm.c132 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.6.21/arch/arm64/kvm/
Dpmu-emul.c748 int base, i, nr_events; in kvm_pmu_get_pmceid() local
773 nr_events = kvm_pmu_event_mask(vcpu->kvm) + 1; in kvm_pmu_get_pmceid()
780 if (nr_events >= (0x4000 + base + 32)) { in kvm_pmu_get_pmceid()
965 int nr_events; in kvm_arm_pmu_v3_set_attr() local
972 nr_events = __kvm_pmu_event_mask(pmuver) + 1; in kvm_arm_pmu_v3_set_attr()
979 if (((u32)filter.base_event + filter.nevents) > nr_events || in kvm_arm_pmu_v3_set_attr()
988 kvm->arch.pmu_filter = bitmap_alloc(nr_events, GFP_KERNEL_ACCOUNT); in kvm_arm_pmu_v3_set_attr()
999 bitmap_zero(kvm->arch.pmu_filter, nr_events); in kvm_arm_pmu_v3_set_attr()
1001 bitmap_fill(kvm->arch.pmu_filter, nr_events); in kvm_arm_pmu_v3_set_attr()
/linux-6.6.21/tools/perf/bench/
Devlist-open-close.c25 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.6.21/tools/verification/dot2/
Ddot2c.py161 nr_events = self.events.__len__()
168 for y in range(nr_events):
173 if y != nr_events-1:
Ddot2k.py101 nr_events = self.events.__len__()
108 main_c = main_c.replace("NR_EVENTS", str(nr_events))
/linux-6.6.21/block/
Ddisk-events.c174 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.6.21/drivers/pci/controller/
Dpcie-iproc-msi.c327 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.6.21/tools/perf/
Dbuiltin-sched.c65 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()
1872 sched->nr_events = session->evlist->stats.nr_events[0]; in perf_sched__read_events()
[all …]
Dbuiltin-kwork.c1266 (kwork->nr_events != 0)) { in print_skipped_events()
1269 (double)kwork->nr_events * 100.0, in print_skipped_events()
1287 if ((kwork->nr_lost_events != 0) && (kwork->nr_events != 0)) { in print_bad_events()
1290 (double)kwork->nr_events * 100.0, in print_bad_events()
1291 kwork->nr_lost_events, kwork->nr_events, in print_bad_events()
1432 kwork->nr_events = session->evlist->stats.nr_events[0]; in perf_kwork__read_events()
1434 kwork->nr_lost_chunks = session->evlist->stats.nr_events[PERF_RECORD_LOST]; in perf_kwork__read_events()
1718 .nr_events = 0, in cmd_kwork()
/linux-6.6.21/tools/perf/ui/stdio/
Dhist.c905 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.6.21/tools/perf/ui/browsers/
Dhists.c691 evsel->evlist->stats.nr_events[PERF_RECORD_LOST])) { in hist_browser__handle_hotkey()
693 evsel->evlist->stats.nr_events[PERF_RECORD_LOST]; in hist_browser__handle_hotkey()
2944 static int evsel__hists_browse(struct evsel *evsel, int nr_events, const char *helpline, in evsel__hists_browse() argument
3046 if (nr_events == 1) in evsel__hists_browse()
3415 unsigned long nr_events = hists->stats.nr_samples; in perf_evsel_menu__write() local
3431 nr_events += pos_hists->stats.nr_samples; in perf_evsel_menu__write()
3435 nr_events = convert_unit(nr_events, &unit); in perf_evsel_menu__write()
3436 printed = scnprintf(bf, sizeof(bf), "%lu%c%s%s", nr_events, in perf_evsel_menu__write()
3440 nr_events = evsel->evlist->stats.nr_events[PERF_RECORD_LOST]; in perf_evsel_menu__write()
3441 if (nr_events != 0) { in perf_evsel_menu__write()
[all …]

123