builtin-stat.c (53f5e9084d0195209bfc7e5fa547fd35bbaadbee) builtin-stat.c (24bf91a7540bc0d14c389dd4f612eea57c06dc93)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * builtin-stat.c
4 *
5 * Builtin stat command: Give a precise performance counters summary
6 * overview about any workload, CPU or specific PID.
7 *
8 * Sample output:

--- 828 unchanged lines hidden (view full) ---

837 if (l > stat_config.unit_width)
838 stat_config.unit_width = l;
839
840 if (evsel__should_store_id(counter) &&
841 evsel__store_ids(counter, evsel_list))
842 return -1;
843 }
844
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * builtin-stat.c
4 *
5 * Builtin stat command: Give a precise performance counters summary
6 * overview about any workload, CPU or specific PID.
7 *
8 * Sample output:

--- 828 unchanged lines hidden (view full) ---

837 if (l > stat_config.unit_width)
838 stat_config.unit_width = l;
839
840 if (evsel__should_store_id(counter) &&
841 evsel__store_ids(counter, evsel_list))
842 return -1;
843 }
844
845 if (perf_evlist__apply_filters(evsel_list, &counter)) {
845 if (evlist__apply_filters(evsel_list, &counter)) {
846 pr_err("failed to set filter \"%s\" on event %s with %d (%s)\n",
847 counter->filter, evsel__name(counter), errno,
848 str_error_r(errno, msg, sizeof(msg)));
849 return -1;
850 }
851
852 if (STAT_RECORD) {
853 int err, fd = perf_data__fd(&perf_stat.data);

--- 1564 unchanged lines hidden ---
846 pr_err("failed to set filter \"%s\" on event %s with %d (%s)\n",
847 counter->filter, evsel__name(counter), errno,
848 str_error_r(errno, msg, sizeof(msg)));
849 return -1;
850 }
851
852 if (STAT_RECORD) {
853 int err, fd = perf_data__fd(&perf_stat.data);

--- 1564 unchanged lines hidden ---