Home
last modified time | relevance | path

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

123

/linux/tools/perf/tests/
H A 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 …]
H A 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()
H A 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()
H A 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()
H A 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/fs/
H A Daio.c120 unsigned nr_events; member
482 static int aio_setup_ring(struct kioctx *ctx, unsigned int nr_events) in aio_setup_ring() argument
492 nr_events += 2; /* 1 is required, 2 for good luck */ in aio_setup_ring()
495 size += sizeof(struct io_event) * nr_events; in aio_setup_ring()
508 nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) in aio_setup_ring()
565 ctx->nr_events = nr_events; /* trusted copy */ in aio_setup_ring()
568 ring->nr = nr_events; /* user copy */ in aio_setup_ring()
733 static struct kioctx *ioctx_alloc(unsigned nr_events) in ioctx_alloc() argument
743 unsigned int max_reqs = nr_events; in ioctx_alloc()
754 nr_events = max(nr_events, num_possible_cpus() * 4); in ioctx_alloc()
[all …]
/linux/drivers/s390/net/
H A 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()
H A 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/tools/perf/util/
H A 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()
H A Devents_stats.h47 u32 nr_events[PERF_RECORD_HEADER_MAX]; member
H A Dhist.c302 he_stat->nr_events += 1; in he_stat__add_period()
315 dest->nr_events += src->nr_events; in he_stat__add_stat()
321 he_stat->nr_events = (he_stat->nr_events * 7) / 8; in he_stat__decay()
739 .nr_events = 1, in __hists__add_entry()
2135 hists->stats.nr_non_filtered_samples += h->stat.nr_events; in hists__remove_entry_filter()
2362 ++stats->nr_events[0]; in events_stats__inc()
2363 ++stats->nr_events[type]; in events_stats__inc()
2775 u64 nr_events = hists->stats.total_period; in __hists__scnprintf_title() local
2785 nr_events = hists->stats.total_non_filtered_period; in __hists__scnprintf_title()
2799 nr_events += pos_hists->stats.total_non_filtered_period; in __hists__scnprintf_title()
[all …]
H A Dordered-events.h49 unsigned int nr_events; member
/linux/drivers/firmware/efi/
H A 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/tools/perf/ui/browsers/
H A Dannotate-data.c36 int nr_events; member
90 entry->hists = calloc(browser->nr_events, sizeof(*entry->hists)); in add_child_entries()
343 adt->self.type_name, he->stat.nr_events); in browser__show()
360 2 + 11 * (browser->nr_events - 1), "", in browser__show()
403 ui_browser__write_nstring(uib, "", 11 * browser->nr_events); in browser__write()
580 .nr_events = 1, in hist_entry__annotate_data_tui()
595 browser.nr_events = nr; in hist_entry__annotate_data_tui()
H A Dhists.c692 evsel->evlist->stats.nr_events[PERF_RECORD_LOST])) { in hist_browser__handle_hotkey()
694 evsel->evlist->stats.nr_events[PERF_RECORD_LOST]; in hist_browser__handle_hotkey()
2968 static int evsel__hists_browse(struct evsel *evsel, int nr_events, const char *helpline, in evsel__hists_browse() argument
3070 if (nr_events == 1) in evsel__hists_browse()
3442 unsigned long nr_events = hists->stats.nr_samples; in perf_evsel_menu__write() local
3458 nr_events += pos_hists->stats.nr_samples; in perf_evsel_menu__write()
3462 nr_events = convert_unit(nr_events, &unit); in perf_evsel_menu__write()
3463 printed = scnprintf(bf, sizeof(bf), "%lu%c%s%s", nr_events, in perf_evsel_menu__write()
3467 nr_events = evsel->evlist->stats.nr_events[PERF_RECORD_LOST]; in perf_evsel_menu__write()
3468 if (nr_events != 0) { in perf_evsel_menu__write()
[all …]
/linux/arch/arm64/kvm/
H A Dpmu-emul.c764 int base, i, nr_events; in kvm_pmu_get_pmceid() local
789 nr_events = kvm_pmu_event_mask(vcpu->kvm) + 1; in kvm_pmu_get_pmceid()
796 if (nr_events >= (0x4000 + base + 32)) { in kvm_pmu_get_pmceid()
1021 int nr_events; in kvm_arm_pmu_v3_set_attr() local
1028 nr_events = __kvm_pmu_event_mask(pmuver) + 1; in kvm_arm_pmu_v3_set_attr()
1035 if (((u32)filter.base_event + filter.nevents) > nr_events || in kvm_arm_pmu_v3_set_attr()
1044 kvm->arch.pmu_filter = bitmap_alloc(nr_events, GFP_KERNEL_ACCOUNT); in kvm_arm_pmu_v3_set_attr()
1055 bitmap_zero(kvm->arch.pmu_filter, nr_events); in kvm_arm_pmu_v3_set_attr()
1057 bitmap_fill(kvm->arch.pmu_filter, nr_events); in kvm_arm_pmu_v3_set_attr()
/linux/tools/perf/bench/
H A 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/tools/verification/dot2/
H A Ddot2c.py161 nr_events = self.events.__len__()
168 for y in range(nr_events):
173 if y != nr_events-1:
H A Ddot2k.py101 nr_events = self.events.__len__()
108 main_c = main_c.replace("NR_EVENTS", str(nr_events))
/linux/block/
H A 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/drivers/pci/controller/
H A 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/include/linux/
H A Dhrtimer_defs.h114 unsigned int nr_events; member
/linux/tools/perf/ui/stdio/
H A Dhist.c904 u32 total = stats->nr_events[0]; in events_stats__fprintf()
912 if (symbol_conf.skip_empty && !stats->nr_events[i]) in events_stats__fprintf()
917 name, stats->nr_events[i], in events_stats__fprintf()
918 100.0 * stats->nr_events[i] / total); in events_stats__fprintf()
921 name, stats->nr_events[i]); in events_stats__fprintf()
/linux/tools/perf/
H A Dbuiltin-sched.c66 unsigned long nr_events; member
199 unsigned long nr_events; member
356 unsigned long idx = task->nr_events; in get_new_event()
362 task->nr_events++; in get_new_event()
363 size = sizeof(struct sched_atom *) * task->nr_events; in get_new_event()
374 if (!task->nr_events) in last_event()
377 return task->atoms[task->nr_events - 1]; in last_event()
494 task->nr, task->comm, task->pid, task->nr_events); in print_task_traces()
638 for (i = 0; i < this_task->nr_events; i++) { in thread_func()
1946 sched->nr_events = session->evlist->stats.nr_events[0]; in perf_sched__read_events()
[all …]
/linux/tools/testing/selftests/kvm/aarch64/
H A Dvgic_lpi_stress.c66 u32 nr_events = test_data.nr_event_ids; in guest_setup_its_mappings() local
81 for (event_id = 0; event_id < nr_events; event_id++) { in guest_setup_its_mappings()

123