diff options
author | Jiri Olsa <jolsa@kernel.org> | 2016-01-07 04:13:58 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-01-08 12:15:43 -0500 |
commit | d2190a8091124f832c8862ace3a3d7d70a2506a5 (patch) | |
tree | d6db172ec3034b099e4dbce4aa0c1a0f6d466dc9 /tools/perf/arch | |
parent | 23df7f798435796aff07d641456326b81cb34a77 (diff) |
perf evlist: Remove perf_evlist__(enable|disable)_event functions
Replacing them with perf_evsel__(enable|disable).
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Noel Grandin <noelgrandin@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1452158050-28061-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch')
-rw-r--r-- | tools/perf/arch/x86/util/intel-bts.c | 4 | ||||
-rw-r--r-- | tools/perf/arch/x86/util/intel-pt.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/arch/x86/util/intel-bts.c b/tools/perf/arch/x86/util/intel-bts.c index 9b94ce520917..8d8150f1cf9b 100644 --- a/tools/perf/arch/x86/util/intel-bts.c +++ b/tools/perf/arch/x86/util/intel-bts.c | |||
@@ -327,7 +327,7 @@ static int intel_bts_snapshot_start(struct auxtrace_record *itr) | |||
327 | 327 | ||
328 | evlist__for_each(btsr->evlist, evsel) { | 328 | evlist__for_each(btsr->evlist, evsel) { |
329 | if (evsel->attr.type == btsr->intel_bts_pmu->type) | 329 | if (evsel->attr.type == btsr->intel_bts_pmu->type) |
330 | return perf_evlist__disable_event(btsr->evlist, evsel); | 330 | return perf_evsel__disable(evsel); |
331 | } | 331 | } |
332 | return -EINVAL; | 332 | return -EINVAL; |
333 | } | 333 | } |
@@ -340,7 +340,7 @@ static int intel_bts_snapshot_finish(struct auxtrace_record *itr) | |||
340 | 340 | ||
341 | evlist__for_each(btsr->evlist, evsel) { | 341 | evlist__for_each(btsr->evlist, evsel) { |
342 | if (evsel->attr.type == btsr->intel_bts_pmu->type) | 342 | if (evsel->attr.type == btsr->intel_bts_pmu->type) |
343 | return perf_evlist__enable_event(btsr->evlist, evsel); | 343 | return perf_evsel__enable(evsel); |
344 | } | 344 | } |
345 | return -EINVAL; | 345 | return -EINVAL; |
346 | } | 346 | } |
diff --git a/tools/perf/arch/x86/util/intel-pt.c b/tools/perf/arch/x86/util/intel-pt.c index b64d46285ebb..f05daacc9e78 100644 --- a/tools/perf/arch/x86/util/intel-pt.c +++ b/tools/perf/arch/x86/util/intel-pt.c | |||
@@ -725,7 +725,7 @@ static int intel_pt_snapshot_start(struct auxtrace_record *itr) | |||
725 | 725 | ||
726 | evlist__for_each(ptr->evlist, evsel) { | 726 | evlist__for_each(ptr->evlist, evsel) { |
727 | if (evsel->attr.type == ptr->intel_pt_pmu->type) | 727 | if (evsel->attr.type == ptr->intel_pt_pmu->type) |
728 | return perf_evlist__disable_event(ptr->evlist, evsel); | 728 | return perf_evsel__disable(evsel); |
729 | } | 729 | } |
730 | return -EINVAL; | 730 | return -EINVAL; |
731 | } | 731 | } |
@@ -738,7 +738,7 @@ static int intel_pt_snapshot_finish(struct auxtrace_record *itr) | |||
738 | 738 | ||
739 | evlist__for_each(ptr->evlist, evsel) { | 739 | evlist__for_each(ptr->evlist, evsel) { |
740 | if (evsel->attr.type == ptr->intel_pt_pmu->type) | 740 | if (evsel->attr.type == ptr->intel_pt_pmu->type) |
741 | return perf_evlist__enable_event(ptr->evlist, evsel); | 741 | return perf_evsel__enable(evsel); |
742 | } | 742 | } |
743 | return -EINVAL; | 743 | return -EINVAL; |
744 | } | 744 | } |