/Linux-v4.19/fs/ |
D | aio.c | 114 unsigned nr_events; member 445 static int aio_setup_ring(struct kioctx *ctx, unsigned int nr_events) in aio_setup_ring() argument 455 nr_events += 2; /* 1 is required, 2 for good luck */ in aio_setup_ring() 458 size += sizeof(struct io_event) * nr_events; in aio_setup_ring() 471 nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) in aio_setup_ring() 526 ctx->nr_events = nr_events; /* trusted copy */ in aio_setup_ring() 529 ring->nr = nr_events; /* user copy */ in aio_setup_ring() 686 static struct kioctx *ioctx_alloc(unsigned nr_events) in ioctx_alloc() argument 696 unsigned int max_reqs = nr_events; in ioctx_alloc() 707 nr_events = max(nr_events, num_possible_cpus() * 4); in ioctx_alloc() [all …]
|
/Linux-v4.19/tools/perf/tests/ |
D | mmap-basic.c | 37 unsigned int nr_events[nsyscalls], in test__basic_mmap() local 94 nr_events[i] = 0; in test__basic_mmap() 136 nr_events[evsel->idx]++; in test__basic_mmap() 144 if (nr_events[evsel->idx] != expected_nr_events[evsel->idx]) { in test__basic_mmap() 147 perf_evsel__name(evsel), nr_events[evsel->idx]); in test__basic_mmap()
|
D | openat-syscall-tp-fields.c | 37 int err = -1, i, nr_events = 0, nr_polls = 0; in test__syscall_openat_tp_fields() local 85 int before = nr_events; in test__syscall_openat_tp_fields() 100 ++nr_events; in test__syscall_openat_tp_fields() 126 if (nr_events == before) in test__syscall_openat_tp_fields()
|
D | hists_filter.c | 154 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter() 160 hists->stats.nr_events[PERF_RECORD_SAMPLE] == in test__hists_filter() 179 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter() 208 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter() 243 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter() 272 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter() 303 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter()
|
D | perf-record.c | 66 int total_events = 0, nr_events[PERF_RECORD_MAX] = { 0, }; in test__PERF_RECORD() local 179 nr_events[type]++; in test__PERF_RECORD() 295 if (nr_events[PERF_RECORD_COMM] > 1) { in test__PERF_RECORD() 300 if (nr_events[PERF_RECORD_COMM] == 0) { in test__PERF_RECORD()
|
/Linux-v4.19/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-v4.19/tools/perf/util/ |
D | ordered-events.c | 23 ++oe->nr_events; in queue_event() 26 pr_oe_time2(timestamp, "queue_event nr_events %u\n", oe->nr_events); in queue_event() 154 oe->nr_events--; in ordered_events__delete() 202 ui_progress__init(&prog, oe->nr_events, "Processing time ordered events..."); in __ordered_events__flush() 242 if (oe->nr_events == 0) in ordered_events__flush() 274 str[how], oe->nr_events); in ordered_events__flush() 287 str[how], oe->nr_events); in ordered_events__flush()
|
D | trace-event-parse.c | 204 if (idx < pevent->nr_events && event == pevent->events[idx]) { in trace_find_next_event() 206 if (idx == pevent->nr_events) in trace_find_next_event() 211 for (idx = 1; idx < pevent->nr_events; idx++) { in trace_find_next_event()
|
D | hist.c | 253 he_stat->nr_events += 1; in he_stat__add_period() 263 dest->nr_events += src->nr_events; in he_stat__add_stat() 270 he_stat->nr_events = (he_stat->nr_events * 7) / 8; in he_stat__decay() 611 .nr_events = 1, in __hists__add_entry() 1901 hists->stats.nr_non_filtered_samples += h->stat.nr_events; in hists__remove_entry_filter() 2124 ++stats->nr_events[0]; in events_stats__inc() 2125 ++stats->nr_events[type]; in events_stats__inc() 2471 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __hists__scnprintf_title() 2472 u64 nr_events = hists->stats.total_period; in __hists__scnprintf_title() local 2482 nr_events = hists->stats.total_non_filtered_period; in __hists__scnprintf_title() [all …]
|
D | ordered-events.h | 41 unsigned int nr_events; member
|
D | annotate.h | 267 int nr_events; member 294 return (notes->options->show_total_period ? 12 : 7) * notes->nr_events; in annotation__pcnt_width()
|
D | session.c | 1581 stats->nr_events[PERF_RECORD_LOST] != 0) { in perf_session__warn_about_errors() 1584 stats->nr_events[0], in perf_session__warn_about_errors() 1585 stats->nr_events[PERF_RECORD_LOST]); in perf_session__warn_about_errors() 1592 (double) (stats->nr_events[PERF_RECORD_SAMPLE] + stats->total_lost_samples); in perf_session__warn_about_errors() 1595 stats->nr_events[PERF_RECORD_SAMPLE] + stats->total_lost_samples, in perf_session__warn_about_errors() 1604 stats->nr_events[PERF_RECORD_AUX]); in perf_session__warn_about_errors() 1617 stats->nr_events[PERF_RECORD_AUX], in perf_session__warn_about_errors() 1643 stats->nr_events[PERF_RECORD_SAMPLE]); in perf_session__warn_about_errors()
|
D | sort.h | 56 u32 nr_events; member
|
/Linux-v4.19/tools/perf/ui/browsers/ |
D | hists.c | 647 browser->hists->stats.nr_events[PERF_RECORD_LOST])) { in hist_browser__run() 649 browser->hists->stats.nr_events[PERF_RECORD_LOST]; in hist_browser__run() 2699 static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, in perf_evsel__hists_browse() argument 2798 if (nr_events == 1) in perf_evsel__hists_browse() 3085 unsigned long nr_events = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in perf_evsel_menu__write() local 3101 nr_events += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; in perf_evsel_menu__write() 3105 nr_events = convert_unit(nr_events, &unit); in perf_evsel_menu__write() 3106 printed = scnprintf(bf, sizeof(bf), "%lu%c%s%s", nr_events, in perf_evsel_menu__write() 3110 nr_events = hists->stats.nr_events[PERF_RECORD_LOST]; in perf_evsel_menu__write() 3111 if (nr_events != 0) { in perf_evsel_menu__write() [all …]
|
/Linux-v4.19/tools/perf/ |
D | builtin-report.c | 399 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events() 400 u64 nr_events = hists->stats.total_period; in hists__fprintf_nr_sample_events() local 411 nr_events = hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events() 425 nr_events += pos_hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events() 427 nr_samples += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events() 428 nr_events += pos_hists->stats.total_period; in hists__fprintf_nr_sample_events() 449 ret += fprintf(fp, "\n# Total weight : %" PRIu64, nr_events); in hists__fprintf_nr_sample_events() 452 ret += fprintf(fp, "\n# Event count (approx.): %" PRIu64, nr_events); in hists__fprintf_nr_sample_events()
|
D | builtin-sched.c | 54 unsigned long nr_events; member 200 unsigned long nr_events; member 351 unsigned long idx = task->nr_events; in get_new_event() 357 task->nr_events++; in get_new_event() 358 size = sizeof(struct sched_atom *) * task->nr_events; in get_new_event() 369 if (!task->nr_events) in last_event() 372 return task->atoms[task->nr_events - 1]; in last_event() 489 task->nr, task->comm, task->pid, task->nr_events); in print_task_traces() 634 for (i = 0; i < this_task->nr_events; i++) { in thread_func() 1811 sched->nr_events = session->evlist->stats.nr_events[0]; in perf_sched__read_events() [all …]
|
D | builtin-trace.c | 91 unsigned long nr_events; member 904 unsigned long nr_events; member 950 ++ttrace->nr_events; in thread__trace() 2194 ++trace->nr_events; in trace__process_sample() 2592 before = trace->nr_events; in trace__run() 2605 ++trace->nr_events; in trace__run() 2628 if (trace->nr_events == before) { in trace__run() 2881 ratio = (double)ttrace->nr_events / trace->nr_events * 100.0; in trace__fprintf_thread() 2884 printed += fprintf(fp, "%lu events, ", ttrace->nr_events); in trace__fprintf_thread() 2902 return ttrace ? ttrace->nr_events : 0; in thread__nr_events()
|
D | builtin-annotate.c | 426 u32 nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __cmd_annotate()
|
/Linux-v4.19/drivers/pci/controller/ |
D | pcie-iproc-msi.c | 317 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-v4.19/drivers/gpu/drm/etnaviv/ |
D | etnaviv_gpu.c | 1078 static int event_alloc(struct etnaviv_gpu *gpu, unsigned nr_events, in event_alloc() argument 1084 for (i = 0; i < nr_events; i++) { in event_alloc() 1100 for (i = 0; i < nr_events; i++) { in event_alloc() 1273 unsigned int i, nr_events = 1, event[3]; in etnaviv_gpu_submit() local 1291 nr_events = 3; in etnaviv_gpu_submit() 1293 ret = event_alloc(gpu, nr_events, event); in etnaviv_gpu_submit() 1303 for (i = 0; i < nr_events; i++) in etnaviv_gpu_submit()
|
/Linux-v4.19/include/linux/ |
D | hrtimer.h | 211 unsigned int nr_events; member
|
/Linux-v4.19/tools/lib/traceevent/ |
D | event-parse.c | 749 (pevent->nr_events + 1)); in add_event() 755 for (i = 0; i < pevent->nr_events; i++) { in add_event() 759 if (i < pevent->nr_events) in add_event() 762 sizeof(event) * (pevent->nr_events - i)); in add_event() 765 pevent->nr_events++; in add_event() 3475 eventptr = bsearch(&pkey, pevent->events, pevent->nr_events, in tep_find_event() 3507 for (i = 0; i < pevent->nr_events; i++) { in tep_find_event_by_name() 3516 if (i == pevent->nr_events) in tep_find_event_by_name() 5630 events = malloc(sizeof(*events) * (pevent->nr_events + 1)); in tep_list_events() 5634 memcpy(events, pevent->events, sizeof(*events) * pevent->nr_events); in tep_list_events() [all …]
|
/Linux-v4.19/kernel/time/ |
D | timer_list.c | 155 P(nr_events); in print_cpu()
|
/Linux-v4.19/block/ |
D | genhd.c | 1805 int nr_events = 0, i; in disk_check_events() local 1831 envp[nr_events++] = disk_uevents[i]; in disk_check_events() 1833 if (nr_events) in disk_check_events()
|