Home
last modified time | relevance | path

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

12

/Linux-v5.4/tools/perf/tests/
Dmmap-basic.c42 unsigned int nr_events[nsyscalls], in test__basic_mmap() local
99 nr_events[i] = 0; in test__basic_mmap()
141 nr_events[evsel->idx]++; in test__basic_mmap()
149 if (nr_events[evsel->idx] != expected_nr_events[evsel->idx]) { in test__basic_mmap()
152 perf_evsel__name(evsel), nr_events[evsel->idx]); in test__basic_mmap()
Dhists_filter.c153 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter()
159 hists->stats.nr_events[PERF_RECORD_SAMPLE] == in test__hists_filter()
178 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter()
207 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter()
242 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter()
271 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter()
302 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter()
Dopenat-syscall-tp-fields.c40 int err = -1, i, nr_events = 0, nr_polls = 0; in test__syscall_openat_tp_fields() local
88 int before = nr_events; in test__syscall_openat_tp_fields()
103 ++nr_events; in test__syscall_openat_tp_fields()
129 if (nr_events == before) in test__syscall_openat_tp_fields()
Dperf-record.c69 int total_events = 0, nr_events[PERF_RECORD_MAX] = { 0, }; in test__PERF_RECORD() local
182 nr_events[type]++; in test__PERF_RECORD()
300 if (nr_events[PERF_RECORD_COMM] > 1 + !!found_coreutils_mmap) { in test__PERF_RECORD()
305 if (nr_events[PERF_RECORD_COMM] == 0) { in test__PERF_RECORD()
/Linux-v5.4/fs/
Daio.c122 unsigned nr_events; member
460 static int aio_setup_ring(struct kioctx *ctx, unsigned int nr_events) in aio_setup_ring() argument
470 nr_events += 2; /* 1 is required, 2 for good luck */ in aio_setup_ring()
473 size += sizeof(struct io_event) * nr_events; in aio_setup_ring()
486 nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) in aio_setup_ring()
541 ctx->nr_events = nr_events; /* trusted copy */ in aio_setup_ring()
544 ring->nr = nr_events; /* user copy */ in aio_setup_ring()
701 static struct kioctx *ioctx_alloc(unsigned nr_events) in ioctx_alloc() argument
711 unsigned int max_reqs = nr_events; in ioctx_alloc()
722 nr_events = max(nr_events, num_possible_cpus() * 4); in ioctx_alloc()
[all …]
Dio_uring.c756 static void io_iopoll_complete(struct io_ring_ctx *ctx, unsigned int *nr_events, in io_iopoll_complete() argument
769 (*nr_events)++; in io_iopoll_complete()
792 static int io_do_iopoll(struct io_ring_ctx *ctx, unsigned int *nr_events, in io_do_iopoll() argument
804 spin = !ctx->poll_multi_file && *nr_events < min; in io_do_iopoll()
832 io_iopoll_complete(ctx, nr_events, &done); in io_do_iopoll()
842 static int io_iopoll_getevents(struct io_ring_ctx *ctx, unsigned int *nr_events, in io_iopoll_getevents() argument
848 ret = io_do_iopoll(ctx, nr_events, min); in io_iopoll_getevents()
851 if (!min || *nr_events >= min) in io_iopoll_getevents()
869 unsigned int nr_events = 0; in io_iopoll_reap_events() local
871 io_iopoll_getevents(ctx, &nr_events, 1); in io_iopoll_reap_events()
[all …]
/Linux-v5.4/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-v5.4/drivers/firmware/efi/
Dtpm.c79 if (final_tbl->nr_events != 0) { in efi_tpm_eventlog_init()
82 + sizeof(final_tbl->nr_events); in efi_tpm_eventlog_init()
85 final_tbl->nr_events, in efi_tpm_eventlog_init()
/Linux-v5.4/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()
236 ui_progress__init(&prog, oe->nr_events, "Processing time ordered events..."); in do_flush()
280 if (oe->nr_events == 0) in __ordered_events__flush()
320 str[how], oe->nr_events); in __ordered_events__flush()
333 str[how], oe->nr_events); in __ordered_events__flush()
Devents_stats.h36 u32 nr_events[PERF_RECORD_HEADER_MAX]; member
Dhist.c275 he_stat->nr_events += 1; in he_stat__add_period()
285 dest->nr_events += src->nr_events; in he_stat__add_stat()
292 he_stat->nr_events = (he_stat->nr_events * 7) / 8; in he_stat__decay()
702 .nr_events = 1, in __hists__add_entry()
2033 hists->stats.nr_non_filtered_samples += h->stat.nr_events; in hists__remove_entry_filter()
2260 ++stats->nr_events[0]; in events_stats__inc()
2261 ++stats->nr_events[type]; in events_stats__inc()
2632 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __hists__scnprintf_title()
2633 u64 nr_events = hists->stats.total_period; in __hists__scnprintf_title() local
2643 nr_events = hists->stats.total_non_filtered_period; in __hists__scnprintf_title()
[all …]
Dordered-events.h48 unsigned int nr_events; member
Dannotate.h280 int nr_events; member
308 return (notes->options->show_total_period ? 12 : 7) * notes->nr_events; in annotation__pcnt_width()
Dsession.c1748 stats->nr_events[PERF_RECORD_LOST] != 0) { in perf_session__warn_about_errors()
1751 stats->nr_events[0], in perf_session__warn_about_errors()
1752 stats->nr_events[PERF_RECORD_LOST]); in perf_session__warn_about_errors()
1759 (double) (stats->nr_events[PERF_RECORD_SAMPLE] + stats->total_lost_samples); in perf_session__warn_about_errors()
1762 stats->nr_events[PERF_RECORD_SAMPLE] + stats->total_lost_samples, in perf_session__warn_about_errors()
1771 stats->nr_events[PERF_RECORD_AUX]); in perf_session__warn_about_errors()
1784 stats->nr_events[PERF_RECORD_AUX], in perf_session__warn_about_errors()
1810 stats->nr_events[PERF_RECORD_SAMPLE]); in perf_session__warn_about_errors()
Dsort.h51 u32 nr_events; member
/Linux-v5.4/drivers/firmware/efi/libstub/
Dtpm.c145 if (final_events_table && final_events_table->nr_events) { in efi_retrieve_tpm2_eventlog()
150 int i = final_events_table->nr_events; in efi_retrieve_tpm2_eventlog()
154 sizeof(final_events_table->nr_events); in efi_retrieve_tpm2_eventlog()
/Linux-v5.4/tools/lib/traceevent/
Devent-parse-api.c21 if (tep && tep->events && index < tep->nr_events) in tep_get_event()
49 return tep->nr_events; in tep_get_events_count()
Devent-parse-local.h52 int nr_events; member
/Linux-v5.4/tools/perf/ui/browsers/
Dhists.c663 browser->hists->stats.nr_events[PERF_RECORD_LOST])) { in hist_browser__run()
665 browser->hists->stats.nr_events[PERF_RECORD_LOST]; in hist_browser__run()
2823 static int perf_evsel__hists_browse(struct evsel *evsel, int nr_events, in perf_evsel__hists_browse() argument
2925 if (nr_events == 1) in perf_evsel__hists_browse()
3227 unsigned long nr_events = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in perf_evsel_menu__write() local
3243 nr_events += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; in perf_evsel_menu__write()
3247 nr_events = convert_unit(nr_events, &unit); in perf_evsel_menu__write()
3248 printed = scnprintf(bf, sizeof(bf), "%lu%c%s%s", nr_events, in perf_evsel_menu__write()
3252 nr_events = hists->stats.nr_events[PERF_RECORD_LOST]; in perf_evsel_menu__write()
3253 if (nr_events != 0) { in perf_evsel_menu__write()
[all …]
/Linux-v5.4/tools/perf/
Dbuiltin-report.c415 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events()
416 u64 nr_events = hists->stats.total_period; in hists__fprintf_nr_sample_events() local
427 nr_events = hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events()
441 nr_events += pos_hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events()
443 nr_samples += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events()
444 nr_events += pos_hists->stats.total_period; in hists__fprintf_nr_sample_events()
465 ret += fprintf(fp, "\n# Total weight : %" PRIu64, nr_events); in hists__fprintf_nr_sample_events()
468 ret += fprintf(fp, "\n# Event count (approx.): %" PRIu64, nr_events); in hists__fprintf_nr_sample_events()
Dbuiltin-sched.c61 unsigned long nr_events; member
207 unsigned long nr_events; member
358 unsigned long idx = task->nr_events; in get_new_event()
364 task->nr_events++; in get_new_event()
365 size = sizeof(struct sched_atom *) * task->nr_events; in get_new_event()
376 if (!task->nr_events) in last_event()
379 return task->atoms[task->nr_events - 1]; in last_event()
496 task->nr, task->comm, task->pid, task->nr_events); in print_task_traces()
641 for (i = 0; i < this_task->nr_events; i++) { in thread_func()
1819 sched->nr_events = session->evlist->stats.nr_events[0]; in perf_sched__read_events()
[all …]
/Linux-v5.4/drivers/pci/controller/
Dpcie-iproc-msi.c317 u32 eq, head, tail, nr_events; in iproc_msi_handler() local
347 nr_events = (tail < head) ? in iproc_msi_handler()
349 if (!nr_events) in iproc_msi_handler()
353 while (nr_events--) { in iproc_msi_handler()
/Linux-v5.4/tools/perf/util/scripting-engines/
Dtrace-event-perl.c542 int i, not_first, count, nr_events; in perl_generate_script() local
607 nr_events = tep_get_events_count(pevent); in perl_generate_script()
610 for (i = 0; all_events && i < nr_events; i++) { in perl_generate_script()
/Linux-v5.4/drivers/gpu/drm/etnaviv/
Detnaviv_gpu.c1079 static int event_alloc(struct etnaviv_gpu *gpu, unsigned nr_events, in event_alloc() argument
1085 for (i = 0; i < nr_events; i++) { in event_alloc()
1101 for (i = 0; i < nr_events; i++) { in event_alloc()
1267 unsigned int i, nr_events = 1, event[3]; in etnaviv_gpu_submit() local
1285 nr_events = 3; in etnaviv_gpu_submit()
1287 ret = event_alloc(gpu, nr_events, event); in etnaviv_gpu_submit()
1297 for (i = 0; i < nr_events; i++) in etnaviv_gpu_submit()

12