diff options
author | Ingo Molnar <mingo@kernel.org> | 2012-06-29 09:11:26 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-06-29 09:11:26 -0400 |
commit | add79461a2a7d964a00b4a2fdaf313c4cf9cf4ec (patch) | |
tree | cda1525b5483ad4952ff9d71348693f14d8b26ba /tools/perf/util/parse-events-test.c | |
parent | 357398e96d8c883b010379a7669df43ed0e2e32b (diff) | |
parent | d9873ab79376d5c0112ed09e14783067dc65e808 (diff) |
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
perf/core improvements and fixes:
* Improve 'perf bench' docs, by Namhyung Kim
* Fix build when O= is not used, from David Ahern
* Fix cross compilation build, from Namhyung Kim
* Fix pipe mode when callchains are used, from David Ahern
* Follow .gnu_debuglink section to find separate symbols, from Pierre-Loup A. Griffais
* Fix 'perf test' raw events entries, from Jiri Olsa
* Use the events description in the perf.data file, not the sysfs ones.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/util/parse-events-test.c')
-rw-r--r-- | tools/perf/util/parse-events-test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/util/parse-events-test.c b/tools/perf/util/parse-events-test.c index 229af6da33a2..a0f61a2a6835 100644 --- a/tools/perf/util/parse-events-test.c +++ b/tools/perf/util/parse-events-test.c | |||
@@ -413,19 +413,20 @@ static int test__checkevent_pmu_name(struct perf_evlist *evlist) | |||
413 | { | 413 | { |
414 | struct perf_evsel *evsel; | 414 | struct perf_evsel *evsel; |
415 | 415 | ||
416 | /* cpu/config=1,name=krava1/u */ | 416 | /* cpu/config=1,name=krava/u */ |
417 | evsel = list_entry(evlist->entries.next, struct perf_evsel, node); | 417 | evsel = list_entry(evlist->entries.next, struct perf_evsel, node); |
418 | TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->nr_entries); | 418 | TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->nr_entries); |
419 | TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->attr.type); | 419 | TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->attr.type); |
420 | TEST_ASSERT_VAL("wrong config", 1 == evsel->attr.config); | 420 | TEST_ASSERT_VAL("wrong config", 1 == evsel->attr.config); |
421 | TEST_ASSERT_VAL("wrong name", !strcmp(perf_evsel__name(evsel), "krava")); | 421 | TEST_ASSERT_VAL("wrong name", !strcmp(perf_evsel__name(evsel), "krava")); |
422 | 422 | ||
423 | /* cpu/config=2/" */ | 423 | /* cpu/config=2/u" */ |
424 | evsel = list_entry(evsel->node.next, struct perf_evsel, node); | 424 | evsel = list_entry(evsel->node.next, struct perf_evsel, node); |
425 | TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->nr_entries); | 425 | TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->nr_entries); |
426 | TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->attr.type); | 426 | TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->attr.type); |
427 | TEST_ASSERT_VAL("wrong config", 2 == evsel->attr.config); | 427 | TEST_ASSERT_VAL("wrong config", 2 == evsel->attr.config); |
428 | TEST_ASSERT_VAL("wrong name", !strcmp(perf_evsel__name(evsel), "raw 0x2")); | 428 | TEST_ASSERT_VAL("wrong name", |
429 | !strcmp(perf_evsel__name(evsel), "raw 0x2:u")); | ||
429 | 430 | ||
430 | return 0; | 431 | return 0; |
431 | } | 432 | } |