diff options
author | Ingo Molnar <mingo@elte.hu> | 2012-03-02 08:40:45 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2012-03-02 08:40:45 +0100 |
commit | 5d85d97c9f6973ba854f35a2d5e80fe68272143e (patch) | |
tree | 873357b11c3423f2b8798b0c9e8e5ac18735db66 /tools/perf/util/evlist.c | |
parent | 30ce2f7eef095d1b8d070740f1948629814fe3c7 (diff) | |
parent | 1c1bc9223387dacc48eb2b61b0baabe7e9cf47f6 (diff) | |
download | linux-5d85d97c9f6973ba854f35a2d5e80fe68272143e.tar.bz2 |
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Various smaller perf/urgent fixes.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/evlist.c')
-rw-r--r-- | tools/perf/util/evlist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 3f16e08a5c8d..ea32a061f1c8 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c @@ -349,6 +349,10 @@ struct perf_evsel *perf_evlist__id2evsel(struct perf_evlist *evlist, u64 id) hlist_for_each_entry(sid, pos, head, node) if (sid->id == id) return sid->evsel; + + if (!perf_evlist__sample_id_all(evlist)) + return list_entry(evlist->entries.next, struct perf_evsel, node); + return NULL; } |