Lines Matching defs:event

24 #include "util/bpf-event.h"
31 #include "util/event.h"
445 fprintf(stdout, "\t[E] active event counter. \t(%s)\n", evsel__name(top->sym_evsel));
526 /* Select 0 as the default event: */
534 prompt_integer(&counter, "Enter details event counter");
538 fprintf(stderr, "Sorry, no such event, using %s.\n", evsel__name(top->sym_evsel));
549 prompt_integer(&top->count_filter, "Enter display event count filter");
553 "Enter details display event filter (percent)");
744 const union perf_event *event,
773 if (event->header.misc & PERF_RECORD_MISC_EXACT_IP)
846 pr_err("Problem incrementing symbol period, skipping event\n");
855 perf_top__process_lost(struct perf_top *top, union perf_event *event,
860 top->lost += event->lost.lost;
861 top->lost_total += event->lost.lost;
862 hists->stats.total_lost += event->lost.lost;
867 union perf_event *event,
872 top->lost += event->lost_samples.lost;
873 top->lost_total += event->lost_samples.lost;
874 hists->stats.total_lost_samples += event->lost_samples.lost;
884 union perf_event *event;
890 while ((event = perf_mmap__read_event(&md->core)) != NULL) {
893 ret = perf_evlist__parse_sample_timestamp(evlist, event, &last_timestamp);
897 ret = ordered_events__queue(top->qe.in, event, last_timestamp, 0);
933 * Check per-event overwrite term.
935 * - All events don't have per-event term
938 * - All events have same per-event term
940 * Using the per-event setting to replace the opts->overwrite if
942 * - Events have different per-event term
945 * - Some of the event set per-event term, but some not.
966 /* no term for current and previous event (likely) */
970 /* has term for both current and previous event, compare */
974 /* no term for current event but has term for previous one */
978 /* has term for current event */
980 /* if it's first event, set overwrite */
1004 /* only fall back when first event fails */
1023 ui__error("perf top only support consistent per-event "
1128 union perf_event *event = qevent->event;
1131 if (event->header.type != PERF_RECORD_SAMPLE)
1144 union perf_event *event = qevent->event;
1156 ret = perf_evlist__parse_sample(evlist, event, &sample);
1165 if (event->header.type == PERF_RECORD_SAMPLE) {
1197 if (event->header.type == PERF_RECORD_SAMPLE)
1203 if (event->header.type == PERF_RECORD_SAMPLE) {
1204 perf_event__process_sample(&top->tool, event, evsel,
1206 } else if (event->header.type == PERF_RECORD_LOST) {
1207 perf_top__process_lost(top, event, evsel);
1208 } else if (event->header.type == PERF_RECORD_LOST_SAMPLES) {
1209 perf_top__process_lost_samples(top, event, evsel);
1210 } else if (event->header.type < PERF_RECORD_MAX) {
1211 hists__inc_nr_events(evsel__hists(evsel), event->header.type);
1212 machine__process_event(machine, event, &sample);
1436 * separate evlist with a dummy event, i.e. a non-overwrite
1451 OPT_CALLBACK('e', "event", &top.evlist, "event",
1452 "event selector. use 'perf list' to list available events",
1454 OPT_U64('c', "count", &opts->user_interval, "event period to sample"),
1535 OPT_BOOLEAN(0, "no-bpf-event", &top.record_opts.no_bpf_event, "do not record bpf events"),
1561 "Show raw trace event output (do not use print fmt or plugins)"),
1568 "number of thread to run event synthesize"),
1574 "Sort the output by the event at the index n in group. "
1575 "If n is invalid, sort by the first event. "
1580 OPT_CALLBACK(0, "pfm-events", &top.evlist, "event",
1581 "libpfm4 event selector. use 'perf list' to list available events",
1631 pr_err("Not enough memory for event selector list\n");