/linux-4.1.27/fs/ |
D | aio.c | 110 unsigned nr_events; member 430 unsigned nr_events = ctx->max_reqs; in aio_setup_ring() local 438 nr_events += 2; /* 1 is required, 2 for good luck */ in aio_setup_ring() 441 size += sizeof(struct io_event) * nr_events; in aio_setup_ring() 454 nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) in aio_setup_ring() 504 ctx->nr_events = nr_events; /* trusted copy */ in aio_setup_ring() 507 ring->nr = nr_events; /* user copy */ in aio_setup_ring() 681 static struct kioctx *ioctx_alloc(unsigned nr_events) in ioctx_alloc() argument 696 nr_events = max(nr_events, num_possible_cpus() * 4); in ioctx_alloc() 697 nr_events *= 2; in ioctx_alloc() [all …]
|
/linux-4.1.27/tools/perf/tests/ |
D | mmap-basic.c | 31 unsigned int nr_events[nsyscalls], in test__basic_mmap() local 87 nr_events[i] = 0; in test__basic_mmap() 125 nr_events[evsel->idx]++; in test__basic_mmap() 131 if (nr_events[evsel->idx] != expected_nr_events[evsel->idx]) { in test__basic_mmap() 134 perf_evsel__name(evsel), nr_events[evsel->idx]); in test__basic_mmap()
|
D | open-syscall-tp-fields.c | 24 int err = -1, i, nr_events = 0, nr_polls = 0; in test__syscall_open_tp_fields() local 72 int before = nr_events; in test__syscall_open_tp_fields() 82 ++nr_events; in test__syscall_open_tp_fields() 107 if (nr_events == before) in test__syscall_open_tp_fields()
|
D | hists_filter.c | 149 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter() 155 hists->stats.nr_events[PERF_RECORD_SAMPLE] == in test__hists_filter() 174 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter() 203 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter() 238 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter() 265 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter()
|
D | perf-record.c | 61 int total_events = 0, nr_events[PERF_RECORD_MAX] = { 0, }; in test__PERF_RECORD() local 166 nr_events[type]++; in test__PERF_RECORD() 281 if (nr_events[PERF_RECORD_COMM] > 1) { in test__PERF_RECORD() 286 if (nr_events[PERF_RECORD_COMM] == 0) { in test__PERF_RECORD()
|
/linux-4.1.27/drivers/s390/net/ |
D | fsm.c | 17 int nr_events, const fsm_node *tmpl, int tmpl_len, gfp_t order) in init_fsm() argument 40 f->nr_events = nr_events; in init_fsm() 46 m = kcalloc(nr_states*nr_events, sizeof(fsm_function_t), order); in init_fsm() 57 (tmpl[i].cond_event >= nr_events) ) { in init_fsm() 61 (long)tmpl[i].cond_event, (long)f->nr_events); in init_fsm()
|
D | fsm.h | 44 int nr_events; member 111 int nr_states, int nr_events, const fsm_node *tmpl, 149 (event >= fi->f->nr_events) ) { in fsm_event() 152 (long)fi->f->nr_events); in fsm_event()
|
/linux-4.1.27/tools/perf/util/ |
D | ordered-events.c | 20 ++oe->nr_events; in queue_event() 23 pr_oe_time2(timestamp, "queue_event nr_events %u\n", oe->nr_events); in queue_event() 151 oe->nr_events--; in ordered_events__delete() 199 ui_progress__init(&prog, oe->nr_events, "Processing time ordered events..."); in __ordered_events__flush() 236 if (oe->nr_events == 0) in ordered_events__flush() 268 str[how], oe->nr_events); in ordered_events__flush() 281 str[how], oe->nr_events); in ordered_events__flush()
|
D | trace-event-parse.c | 217 if (idx < pevent->nr_events && event == pevent->events[idx]) { in trace_find_next_event() 219 if (idx == pevent->nr_events) in trace_find_next_event() 224 for (idx = 1; idx < pevent->nr_events; idx++) { in trace_find_next_event()
|
D | hist.c | 205 he_stat->nr_events += 1; in he_stat__add_period() 215 dest->nr_events += src->nr_events; in he_stat__add_stat() 222 he_stat->nr_events = (he_stat->nr_events * 7) / 8; in he_stat__decay() 462 .nr_events = 1, in __hists__add_entry() 1173 hists->stats.nr_non_filtered_samples += h->stat.nr_events; in hists__remove_entry_filter() 1279 ++stats->nr_events[0]; in events_stats__inc() 1280 ++stats->nr_events[type]; in events_stats__inc()
|
D | ordered-events.h | 40 unsigned int nr_events; member
|
D | sort.h | 56 u32 nr_events; member
|
D | symbol.h | 85 unsigned short nr_events; member
|
D | event.h | 238 u32 nr_events[PERF_RECORD_HEADER_MAX]; member
|
D | session.c | 1134 stats->nr_events[PERF_RECORD_LOST] != 0) { in perf_session__warn_about_errors() 1137 stats->nr_events[0], in perf_session__warn_about_errors() 1138 stats->nr_events[PERF_RECORD_LOST]); in perf_session__warn_about_errors() 1160 stats->nr_events[PERF_RECORD_SAMPLE]); in perf_session__warn_about_errors()
|
D | annotate.c | 464 / symbol_conf.nr_events) in symbol__alloc_hist() 467 notes->src = zalloc(sizeof(*notes->src) + symbol_conf.nr_events * sizeof_sym_hist); in symbol__alloc_hist() 471 notes->src->nr_histograms = symbol_conf.nr_events; in symbol__alloc_hist()
|
D | sort.c | 936 return he->stat.nr_events ? he->stat.weight / he->stat.nr_events : 0; in he_weight()
|
D | header.c | 2547 symbol_conf.nr_events = nr_attrs; in perf_session__read_header() 2654 symbol_conf.nr_events = evlist->nr_entries; in perf_event__process_attr()
|
/linux-4.1.27/tools/perf/ui/browsers/ |
D | hists.c | 440 browser->hists->stats.nr_events[PERF_RECORD_LOST]) { in hist_browser__run() 442 browser->hists->stats.nr_events[PERF_RECORD_LOST]; in hist_browser__run() 1243 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__browser_title() 1244 u64 nr_events = hists->stats.total_period; in hists__browser_title() local 1252 nr_events = hists->stats.total_non_filtered_period; in hists__browser_title() 1266 nr_events += pos_hists->stats.total_non_filtered_period; in hists__browser_title() 1268 nr_samples += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__browser_title() 1269 nr_events += pos_hists->stats.total_period; in hists__browser_title() 1277 nr_samples, unit, ev_name, nr_events); in hists__browser_title() 1416 static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, in perf_evsel__hists_browse() argument [all …]
|
D | annotate.c | 43 int nr_events; member 103 int i, pcnt_width = 7 * ab->nr_events; in annotate_browser__write() 107 for (i = 0; i < ab->nr_events; i++) { in annotate_browser__write() 113 for (i = 0; i < ab->nr_events; i++) { in annotate_browser__write() 247 pcnt_width *= ab->nr_events; in annotate_browser__draw_current_jump() 260 pcnt_width = 7 * ab->nr_events; in annotate_browser__refresh() 284 int nr_events) in disasm_rb_tree__insert() argument 294 if (disasm__cmp(bdl, l, nr_events)) in disasm_rb_tree__insert() 368 for (i = 0; i < browser->nr_events; i++) { in annotate_browser__calc_percent() 384 browser->nr_events); in annotate_browser__calc_percent() [all …]
|
/linux-4.1.27/drivers/infiniband/hw/ehca/ |
D | ehca_irq.c | 215 atomic_inc(&qp->nr_events); in qp_event_callback() 235 if (atomic_dec_and_test(&qp->nr_events)) in qp_event_callback() 249 atomic_inc(&cq->nr_events); in cq_event_callback() 257 if (atomic_dec_and_test(&cq->nr_events)) in cq_event_callback() 527 atomic_inc(&cq->nr_events); in process_eqe() 540 if (atomic_dec_and_test(&cq->nr_events)) in process_eqe() 586 atomic_inc(&eqe_cache[eqe_cnt].cq->nr_events); in ehca_process_eq() 629 if (atomic_dec_and_test(&cq->nr_events)) in ehca_process_eq() 734 if (atomic_dec_and_test(&cq->nr_events)) in run_comp_task()
|
D | ehca_classes.h | 223 atomic_t nr_events; /* events seen */ member 251 atomic_t nr_events; /* #events seen */ member
|
D | ehca_cq.c | 158 atomic_set(&my_cq->nr_events, 0); in ehca_create_cq() 342 wait_event(my_cq->wait_completion, !atomic_read(&my_cq->nr_events)); in ehca_destroy_cq()
|
D | ehca_qp.c | 624 atomic_set(&my_qp->nr_events, 0); in internal_create_qp() 2181 wait_event(my_qp->wait_completion, !atomic_read(&my_qp->nr_events)); in internal_destroy_qp()
|
/linux-4.1.27/tools/perf/ |
D | builtin-report.c | 270 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events() 271 u64 nr_events = hists->stats.total_period; in hists__fprintf_nr_sample_events() local 278 nr_events = hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events() 292 nr_events += pos_hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events() 294 nr_samples += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events() 295 nr_events += pos_hists->stats.total_period; in hists__fprintf_nr_sample_events() 306 ret += fprintf(fp, "\n# Total weight : %" PRIu64, nr_events); in hists__fprintf_nr_sample_events() 309 ret += fprintf(fp, "\n# Event count (approx.): %" PRIu64, nr_events); in hists__fprintf_nr_sample_events()
|
D | builtin-sched.c | 41 unsigned long nr_events; member 155 unsigned long nr_events; member 243 unsigned long idx = task->nr_events; in get_new_event() 249 task->nr_events++; in get_new_event() 250 size = sizeof(struct sched_atom *) * task->nr_events; in get_new_event() 261 if (!task->nr_events) in last_event() 264 return task->atoms[task->nr_events - 1]; in last_event() 381 task->nr, task->comm, task->pid, task->nr_events); in print_task_traces() 526 for (i = 0; i < this_task->nr_events; i++) { in thread_func() 1512 sched->nr_events = session->evlist->stats.nr_events[0]; in perf_sched__read_events() [all …]
|
D | builtin-trace.c | 1166 unsigned long nr_events; member 1204 ++ttrace->nr_events; in thread__trace() 1232 unsigned long nr_events; member 2004 ++trace->nr_events; in trace__process_sample() 2254 before = trace->nr_events; in trace__run() 2262 ++trace->nr_events; in trace__run() 2284 if (trace->nr_events == before) { in trace__run() 2516 ratio = (double)ttrace->nr_events / trace->nr_events * 100.0; in trace__fprintf_one_thread() 2519 printed += fprintf(fp, "%lu events, ", ttrace->nr_events); in trace__fprintf_one_thread()
|
D | builtin-top.c | 265 hists->stats.nr_events[PERF_RECORD_LOST]) { in perf_top__print_sym_table() 267 hists->stats.nr_events[PERF_RECORD_LOST]; in perf_top__print_sym_table() 1232 symbol_conf.nr_events = top.evlist->nr_entries; in cmd_top()
|
D | builtin-annotate.c | 230 u32 nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __cmd_annotate()
|
D | builtin-kvm.c | 1377 symbol_conf.nr_events = kvm->evlist->nr_entries; in kvm_events_live()
|
/linux-4.1.27/tools/perf/ui/stdio/ |
D | hist.c | 499 if (stats->nr_events[i] == 0) in events_stats__fprintf() 507 stats->nr_events[i]); in events_stats__fprintf()
|
/linux-4.1.27/include/linux/ |
D | hrtimer.h | 192 unsigned long nr_events; member
|
D | perf_event.h | 520 int nr_events; member
|
/linux-4.1.27/tools/lib/traceevent/ |
D | event-parse.c | 695 (pevent->nr_events + 1)); in add_event() 701 for (i = 0; i < pevent->nr_events; i++) { in add_event() 705 if (i < pevent->nr_events) in add_event() 708 sizeof(event) * (pevent->nr_events - i)); in add_event() 711 pevent->nr_events++; in add_event() 3342 eventptr = bsearch(&pkey, pevent->events, pevent->nr_events, in pevent_find_event() 3374 for (i = 0; i < pevent->nr_events; i++) { in pevent_find_event_by_name() 3383 if (i == pevent->nr_events) in pevent_find_event_by_name() 5332 events = malloc(sizeof(*events) * (pevent->nr_events + 1)); in pevent_list_events() 5336 memcpy(events, pevent->events, sizeof(*events) * pevent->nr_events); in pevent_list_events() [all …]
|
D | event-parse.h | 492 int nr_events; member
|
D | parse-filter.c | 313 for (i = 0; i < pevent->nr_events; i++) { in find_event()
|
/linux-4.1.27/kernel/time/ |
D | timer_list.c | 158 P(nr_events); in print_cpu()
|
D | hrtimer.c | 1252 cpu_base->nr_events++; in hrtimer_interrupt()
|
/linux-4.1.27/block/ |
D | genhd.c | 1626 int nr_events = 0, i; in disk_check_events() local 1652 envp[nr_events++] = disk_uevents[i]; in disk_check_events() 1654 if (nr_events) in disk_check_events()
|
/linux-4.1.27/kernel/trace/ |
D | trace_events.c | 482 if (!--dir->nr_events) { in remove_subsystem() 1150 if (dir->nr_events) { in subsystem_open() 1511 dir->nr_events++; in event_subsystem_dir() 1546 dir->nr_events = 1; in event_subsystem_dir()
|
D | trace.h | 1002 int nr_events; member
|
D | trace_events_filter.c | 2041 if (!dir->nr_events) { in apply_subsystem_event_filter()
|
/linux-4.1.27/kernel/events/ |
D | core.c | 1253 ctx->nr_events++; in list_add_event() 1418 ctx->nr_events--; in list_del_event() 1632 if (!ctx->nr_events && cpuctx->task_ctx == ctx) { in __perf_remove_from_context() 2389 if (likely(!ctx->nr_events)) in ctx_sched_out() 2766 if (likely(!ctx->nr_events)) in ctx_sched_in() 2811 if (ctx->nr_events) in perf_event_context_sched_in() 3051 if (cpuctx->ctx.nr_events) { in perf_rotate_context() 3052 if (cpuctx->ctx.nr_events != cpuctx->ctx.nr_active) in perf_rotate_context() 3057 if (ctx && ctx->nr_events) { in perf_rotate_context() 3058 if (ctx->nr_events != ctx->nr_active) in perf_rotate_context() [all …]
|
/linux-4.1.27/tools/perf/ui/ |
D | hist.c | 364 HPP_RAW_FNS(samples, nr_events) in HPP_PERCENT_FNS()
|
/linux-4.1.27/lib/ |
D | Kconfig.debug | 89 fs/aio.c:248 [aio]ioctx_alloc =_ "ENOMEM:\040nr_events\040too\040high\012"
|