aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/builtin-inject.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2016-06-26 12:41:59 +0200
committerIngo Molnar <mingo@kernel.org>2016-06-26 12:41:59 +0200
commit9840b1ae45876bcca41b64007ac4a56a7cd14c73 (patch)
treeaad3076b4ccaeea4b7d9a2213282e24c36ac60d4 /tools/perf/builtin-inject.c
parentMerge tag 'perf-core-for-mingo-20160621' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core (diff)
parentperf config: Reimplement show_config() using config_set__for_each (diff)
downloadwireguard-linux-9840b1ae45876bcca41b64007ac4a56a7cd14c73.tar.xz
wireguard-linux-9840b1ae45876bcca41b64007ac4a56a7cd14c73.zip
Merge tag 'perf-core-for-mingo-20160623' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo: New features: - Add 'callindent' option to 'perf script -F', to indent the Intel PT call stack, making this output more ftrace-like (Adrian Hunter, Andi Kleen) User visible changes: - Enlarge 'pid' column width, to cope with large pids (Jiri Olsa) Infrastructure changes: - Fix cross platform unwind (He Kuang) - Make destructors accept NULL, behaving like free() (Arnaldo Carvalho de Melo) - Remove reference to perl interpreted in the recently added 'perf script' stackcollapse python script (Arnaldo Carvalho de Melo) - Rename CLASS__for_each() macros to CLASS__for_each_entry(), to use the list_for_each_entry() semantics, as most of these class specific loop helpers are list_for_each_entry*() wrappers (Arnaldo Carvalho de Melo) - Expose the hist_browser code, will be used with data structures other than perf_evsel (Jiri Olsa) - Refactor 'perf config' (Taeung Song) Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to '')
-rw-r--r--tools/perf/builtin-inject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-inject.c b/tools/perf/builtin-inject.c
index e5afa8fe1bf1..73c1c4cc3600 100644
--- a/tools/perf/builtin-inject.c
+++ b/tools/perf/builtin-inject.c
@@ -562,7 +562,7 @@ static void strip_init(struct perf_inject *inject)
inject->tool.context_switch = perf_event__drop;
- evlist__for_each(evlist, evsel)
+ evlist__for_each_entry(evlist, evsel)
evsel->handler = drop_sample;
}
@@ -590,7 +590,7 @@ static bool ok_to_remove(struct perf_evlist *evlist,
if (!has_tracking(evsel_to_remove))
return true;
- evlist__for_each(evlist, evsel) {
+ evlist__for_each_entry(evlist, evsel) {
if (evsel->handler != drop_sample) {
cnt += 1;
if ((evsel->attr.sample_type & COMPAT_MASK) ==
@@ -608,7 +608,7 @@ static void strip_fini(struct perf_inject *inject)
struct perf_evsel *evsel, *tmp;
/* Remove non-synthesized evsels if possible */
- evlist__for_each_safe(evlist, tmp, evsel) {
+ evlist__for_each_entry_safe(evlist, tmp, evsel) {
if (evsel->handler == drop_sample &&
ok_to_remove(evlist, evsel)) {
pr_debug("Deleting %s\n", perf_evsel__name(evsel));
@@ -643,7 +643,7 @@ static int __cmd_inject(struct perf_inject *inject)
} else if (inject->sched_stat) {
struct perf_evsel *evsel;
- evlist__for_each(session->evlist, evsel) {
+ evlist__for_each_entry(session->evlist, evsel) {
const char *name = perf_evsel__name(evsel);
if (!strcmp(name, "sched:sched_switch")) {