/tools/perf/tests/ |
D | pfm.c | 54 int nr_events; in test__pfm_events() member 58 .nr_events = 0, in test__pfm_events() 62 .nr_events = 1, in test__pfm_events() 66 .nr_events = 2, in test__pfm_events() 70 .nr_events = 0, in test__pfm_events() 74 .nr_events = 2, in test__pfm_events() 78 .nr_events = 0, in test__pfm_events() 82 .nr_events = 1, in test__pfm_events() 97 table[i].nr_events); in test__pfm_events() 114 int nr_events; in test__pfm_group() member [all …]
|
D | expand-cgroup.c | 20 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 (strcmp(evsel->name, 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()
|
D | mmap-basic.c | 43 unsigned int nr_events[nsyscalls], in test__basic_mmap() local 100 nr_events[i] = 0; in test__basic_mmap() 142 nr_events[evsel->idx]++; in test__basic_mmap() 150 if (nr_events[evsel->idx] != expected_nr_events[evsel->idx]) { in test__basic_mmap() 153 evsel__name(evsel), nr_events[evsel->idx]); in test__basic_mmap()
|
D | openat-syscall-tp-fields.c | 41 int err = -1, i, nr_events = 0, nr_polls = 0; in test__syscall_openat_tp_fields() local 89 int before = nr_events; in test__syscall_openat_tp_fields() 104 ++nr_events; in test__syscall_openat_tp_fields() 130 if (nr_events == before) in test__syscall_openat_tp_fields()
|
D | hists_filter.c | 153 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()
|
D | perf-record.c | 70 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()
|
/tools/perf/util/ |
D | ordered-events.c | 24 ++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()
|
D | events_stats.h | 36 u32 nr_events[PERF_RECORD_HEADER_MAX]; member
|
D | ordered-events.h | 48 unsigned int nr_events; member
|
D | hist.c | 290 he_stat->nr_events += 1; in he_stat__add_period() 300 dest->nr_events += src->nr_events; in he_stat__add_stat() 307 he_stat->nr_events = (he_stat->nr_events * 7) / 8; in he_stat__decay() 719 .nr_events = 1, in __hists__add_entry() 2080 hists->stats.nr_non_filtered_samples += h->stat.nr_events; in hists__remove_entry_filter() 2307 ++stats->nr_events[0]; in events_stats__inc() 2308 ++stats->nr_events[type]; in events_stats__inc() 2688 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __hists__scnprintf_title() 2689 u64 nr_events = hists->stats.total_period; in __hists__scnprintf_title() local 2699 nr_events = hists->stats.total_non_filtered_period; in __hists__scnprintf_title() [all …]
|
D | annotate.h | 283 int nr_events; member 310 return (symbol_conf.show_total_period ? 12 : 7) * notes->nr_events; in annotation__pcnt_width()
|
D | sort.h | 53 u32 nr_events; member
|
D | session.c | 1846 stats->nr_events[PERF_RECORD_LOST] != 0) { in perf_session__warn_about_errors() 1849 stats->nr_events[0], in perf_session__warn_about_errors() 1850 stats->nr_events[PERF_RECORD_LOST]); in perf_session__warn_about_errors() 1857 (double) (stats->nr_events[PERF_RECORD_SAMPLE] + stats->total_lost_samples); in perf_session__warn_about_errors() 1860 stats->nr_events[PERF_RECORD_SAMPLE] + stats->total_lost_samples, in perf_session__warn_about_errors() 1869 stats->nr_events[PERF_RECORD_AUX]); in perf_session__warn_about_errors() 1882 stats->nr_events[PERF_RECORD_AUX], in perf_session__warn_about_errors() 1908 stats->nr_events[PERF_RECORD_SAMPLE]); in perf_session__warn_about_errors()
|
/tools/lib/traceevent/ |
D | event-parse-api.c | 21 if (tep && tep->events && index < tep->nr_events) in tep_get_event() 49 return tep->nr_events; in tep_get_events_count()
|
D | event-parse-local.h | 54 int nr_events; member
|
D | event-parse.c | 815 (tep->nr_events + 1)); in add_event() 821 for (i = 0; i < tep->nr_events; i++) { in add_event() 825 if (i < tep->nr_events) in add_event() 828 sizeof(event) * (tep->nr_events - i)); in add_event() 831 tep->nr_events++; in add_event() 3584 eventptr = bsearch(&pkey, tep->events, tep->nr_events, in tep_find_event() 3616 for (i = 0; i < tep->nr_events; i++) { in tep_find_event_by_name() 3625 if (i == tep->nr_events) in tep_find_event_by_name() 6281 events = malloc(sizeof(*events) * (tep->nr_events + 1)); in list_events_copy() 6285 memcpy(events, tep->events, sizeof(*events) * tep->nr_events); in list_events_copy() [all …]
|
/tools/perf/ui/browsers/ |
D | hists.c | 690 browser->hists->stats.nr_events[PERF_RECORD_LOST])) { in hist_browser__handle_hotkey() 692 browser->hists->stats.nr_events[PERF_RECORD_LOST]; in hist_browser__handle_hotkey() 2939 static int perf_evsel__hists_browse(struct evsel *evsel, int nr_events, in perf_evsel__hists_browse() argument 3045 if (nr_events == 1) in perf_evsel__hists_browse() 3413 unsigned long nr_events = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in perf_evsel_menu__write() local 3429 nr_events += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; in perf_evsel_menu__write() 3433 nr_events = convert_unit(nr_events, &unit); in perf_evsel_menu__write() 3434 printed = scnprintf(bf, sizeof(bf), "%lu%c%s%s", nr_events, in perf_evsel_menu__write() 3438 nr_events = hists->stats.nr_events[PERF_RECORD_LOST]; in perf_evsel_menu__write() 3439 if (nr_events != 0) { in perf_evsel_menu__write() [all …]
|
/tools/perf/ |
D | builtin-report.c | 450 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events() 451 u64 nr_events = hists->stats.total_period; in hists__fprintf_nr_sample_events() local 462 nr_events = hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events() 476 nr_events += pos_hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events() 478 nr_samples += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events() 479 nr_events += pos_hists->stats.total_period; in hists__fprintf_nr_sample_events() 499 ret += fprintf(fp, "\n# Total weight : %" PRIu64, nr_events); in hists__fprintf_nr_sample_events() 502 ret += fprintf(fp, "\n# Event count (approx.): %" PRIu64, nr_events); in hists__fprintf_nr_sample_events()
|
D | builtin-sched.c | 64 unsigned long nr_events; member 211 unsigned long nr_events; member 362 unsigned long idx = task->nr_events; in get_new_event() 368 task->nr_events++; in get_new_event() 369 size = sizeof(struct sched_atom *) * task->nr_events; in get_new_event() 380 if (!task->nr_events) in last_event() 383 return task->atoms[task->nr_events - 1]; in last_event() 500 task->nr, task->comm, task->pid, task->nr_events); in print_task_traces() 645 for (i = 0; i < this_task->nr_events; i++) { in thread_func() 1825 sched->nr_events = session->evlist->stats.nr_events[0]; in perf_sched__read_events() [all …]
|
D | builtin-trace.c | 147 unsigned long nr_events; member 1257 unsigned long nr_events; member 1303 ++ttrace->nr_events; in thread__trace() 2971 ++trace->nr_events; 4075 before = trace->nr_events; 4086 ++trace->nr_events; 4105 if (trace->nr_events == before) { 4372 ratio = (double)ttrace->nr_events / trace->nr_events * 100.0; 4375 printed += fprintf(fp, "%lu events, ", ttrace->nr_events); 4393 return ttrace ? ttrace->nr_events : 0;
|
D | builtin-top.c | 332 hists->stats.nr_events[PERF_RECORD_LOST])) { in perf_top__print_sym_table() 334 hists->stats.nr_events[PERF_RECORD_LOST]; in perf_top__print_sym_table() 1104 if (!in->nr_events) { in process_thread()
|
D | builtin-annotate.c | 428 u32 nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __cmd_annotate()
|
/tools/perf/util/scripting-engines/ |
D | trace-event-perl.c | 542 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()
|
D | trace-event-python.c | 1708 int i, not_first, count, nr_events; in python_generate_script() local 1757 nr_events = tep_get_events_count(pevent); in python_generate_script() 1760 for (i = 0; all_events && i < nr_events; i++) { in python_generate_script()
|
/tools/perf/ui/ |
D | hist.c | 438 HPP_RAW_FNS(samples, nr_events) in HPP_PERCENT_FNS()
|