Symbol: evswitch
tools/perf/builtin-report.c
1496
OPTS_EVSWITCH(&report.evswitch),
tools/perf/builtin-report.c
1631
ret = evswitch__init(&report.evswitch, session->evlist, stderr);
tools/perf/builtin-report.c
283
if (evswitch__discard(&rep->evswitch, sample->evsel))
tools/perf/builtin-report.c
81
struct evswitch evswitch;
tools/perf/builtin-script.c
163
struct evswitch evswitch;
tools/perf/builtin-script.c
2709
if (evswitch__discard(&scr->evswitch, evsel))
tools/perf/builtin-script.c
2792
if (evswitch__discard(&scr->evswitch, evsel))
tools/perf/builtin-script.c
4200
OPTS_EVSWITCH(&script.evswitch),
tools/perf/builtin-script.c
4596
err = evswitch__init(&script.evswitch, session->evlist, stderr);
tools/perf/builtin-top.c
1174
if (evswitch__discard(&top->evswitch, evsel)) {
tools/perf/builtin-top.c
1630
OPTS_EVSWITCH(&top.evswitch),
tools/perf/builtin-top.c
1727
status = evswitch__init(&top.evswitch, top.evlist, stderr);
tools/perf/builtin-trace.c
169
struct evswitch evswitch;
tools/perf/builtin-trace.c
3689
if (evswitch__discard(&trace->evswitch, sample->evsel))
tools/perf/builtin-trace.c
5543
OPTS_EVSWITCH(&trace.evswitch),
tools/perf/builtin-trace.c
5812
err = evswitch__init(&trace.evswitch, trace.evlist, stderr);
tools/perf/util/evswitch.c
10
if (evswitch->on && evswitch->discarding) {
tools/perf/util/evswitch.c
11
if (evswitch->on != evsel)
tools/perf/util/evswitch.c
14
evswitch->discarding = false;
tools/perf/util/evswitch.c
16
if (!evswitch->show_on_off_events)
tools/perf/util/evswitch.c
22
if (evswitch->off && !evswitch->discarding) {
tools/perf/util/evswitch.c
23
if (evswitch->off != evsel)
tools/perf/util/evswitch.c
26
evswitch->discarding = true;
tools/perf/util/evswitch.c
28
if (!evswitch->show_on_off_events)
tools/perf/util/evswitch.c
42
int evswitch__init(struct evswitch *evswitch, struct evlist *evlist, FILE *fp)
tools/perf/util/evswitch.c
44
if (evswitch->on_name) {
tools/perf/util/evswitch.c
45
evswitch->on = evlist__find_evsel_by_str(evlist, evswitch->on_name);
tools/perf/util/evswitch.c
46
if (evswitch->on == NULL) {
tools/perf/util/evswitch.c
47
evswitch__fprintf_enoent(fp, "on", evswitch->on_name);
tools/perf/util/evswitch.c
50
evswitch->discarding = true;
tools/perf/util/evswitch.c
53
if (evswitch->off_name) {
tools/perf/util/evswitch.c
54
evswitch->off = evlist__find_evsel_by_str(evlist, evswitch->off_name);
tools/perf/util/evswitch.c
55
if (evswitch->off == NULL) {
tools/perf/util/evswitch.c
56
evswitch__fprintf_enoent(fp, "off", evswitch->off_name);
tools/perf/util/evswitch.c
8
bool evswitch__discard(struct evswitch *evswitch, struct evsel *evsel)
tools/perf/util/evswitch.h
19
int evswitch__init(struct evswitch *evswitch, struct evlist *evlist, FILE *fp);
tools/perf/util/evswitch.h
21
bool evswitch__discard(struct evswitch *evswitch, struct evsel *evsel);
tools/perf/util/evswitch.h
23
#define OPTS_EVSWITCH(evswitch) \
tools/perf/util/evswitch.h
24
OPT_STRING(0, "switch-on", &(evswitch)->on_name, \
tools/perf/util/evswitch.h
26
OPT_STRING(0, "switch-off", &(evswitch)->off_name, \
tools/perf/util/evswitch.h
28
OPT_BOOLEAN(0, "show-on-off-events", &(evswitch)->show_on_off_events, \
tools/perf/util/top.h
24
struct evswitch evswitch;