aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/tests
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2013-01-18 14:29:49 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-01-24 14:40:50 -0500
commit6cee6cd310638cd5751eea0c81315b17eb7c28a9 (patch)
tree504ad5683181b588eb13e3cb5c1404fb9f62e130 /tools/perf/tests
parent08aa9cce6bf3ecdfa386cf0a0be842855eac3e7d (diff)
perf tools: Fix usage of __ in parse_events_term struct
In tools/perf we use a convention where __ separates the struct name from the function name for functions that operate on a struct instance. Fix this usage by removing it from the struct parse_events_term and fix also its associated functions. Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-h6vkql4jr7dv0096f1s6hldm@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests')
-rw-r--r--tools/perf/tests/parse-events.c10
-rw-r--r--tools/perf/tests/pmu.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c
index 337424d02e53..9ac45c58305e 100644
--- a/tools/perf/tests/parse-events.c
+++ b/tools/perf/tests/parse-events.c
@@ -464,10 +464,10 @@ static int test__checkevent_pmu_events(struct perf_evlist *evlist)
464 464
465static int test__checkterms_simple(struct list_head *terms) 465static int test__checkterms_simple(struct list_head *terms)
466{ 466{
467 struct parse_events__term *term; 467 struct parse_events_term *term;
468 468
469 /* config=10 */ 469 /* config=10 */
470 term = list_entry(terms->next, struct parse_events__term, list); 470 term = list_entry(terms->next, struct parse_events_term, list);
471 TEST_ASSERT_VAL("wrong type term", 471 TEST_ASSERT_VAL("wrong type term",
472 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG); 472 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG);
473 TEST_ASSERT_VAL("wrong type val", 473 TEST_ASSERT_VAL("wrong type val",
@@ -476,7 +476,7 @@ static int test__checkterms_simple(struct list_head *terms)
476 TEST_ASSERT_VAL("wrong config", !term->config); 476 TEST_ASSERT_VAL("wrong config", !term->config);
477 477
478 /* config1 */ 478 /* config1 */
479 term = list_entry(term->list.next, struct parse_events__term, list); 479 term = list_entry(term->list.next, struct parse_events_term, list);
480 TEST_ASSERT_VAL("wrong type term", 480 TEST_ASSERT_VAL("wrong type term",
481 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG1); 481 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG1);
482 TEST_ASSERT_VAL("wrong type val", 482 TEST_ASSERT_VAL("wrong type val",
@@ -485,7 +485,7 @@ static int test__checkterms_simple(struct list_head *terms)
485 TEST_ASSERT_VAL("wrong config", !term->config); 485 TEST_ASSERT_VAL("wrong config", !term->config);
486 486
487 /* config2=3 */ 487 /* config2=3 */
488 term = list_entry(term->list.next, struct parse_events__term, list); 488 term = list_entry(term->list.next, struct parse_events_term, list);
489 TEST_ASSERT_VAL("wrong type term", 489 TEST_ASSERT_VAL("wrong type term",
490 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG2); 490 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG2);
491 TEST_ASSERT_VAL("wrong type val", 491 TEST_ASSERT_VAL("wrong type val",
@@ -494,7 +494,7 @@ static int test__checkterms_simple(struct list_head *terms)
494 TEST_ASSERT_VAL("wrong config", !term->config); 494 TEST_ASSERT_VAL("wrong config", !term->config);
495 495
496 /* umask=1*/ 496 /* umask=1*/
497 term = list_entry(term->list.next, struct parse_events__term, list); 497 term = list_entry(term->list.next, struct parse_events_term, list);
498 TEST_ASSERT_VAL("wrong type term", 498 TEST_ASSERT_VAL("wrong type term",
499 term->type_term == PARSE_EVENTS__TERM_TYPE_USER); 499 term->type_term == PARSE_EVENTS__TERM_TYPE_USER);
500 TEST_ASSERT_VAL("wrong type val", 500 TEST_ASSERT_VAL("wrong type val",
diff --git a/tools/perf/tests/pmu.c b/tools/perf/tests/pmu.c
index a5f379863b8f..6803ed1a06dd 100644
--- a/tools/perf/tests/pmu.c
+++ b/tools/perf/tests/pmu.c
@@ -22,7 +22,7 @@ static struct test_format {
22#define TEST_FORMATS_CNT (sizeof(test_formats) / sizeof(struct test_format)) 22#define TEST_FORMATS_CNT (sizeof(test_formats) / sizeof(struct test_format))
23 23
24/* Simulated users input. */ 24/* Simulated users input. */
25static struct parse_events__term test_terms[] = { 25static struct parse_events_term test_terms[] = {
26 { 26 {
27 .config = (char *) "krava01", 27 .config = (char *) "krava01",
28 .val.num = 15, 28 .val.num = 15,
@@ -78,7 +78,7 @@ static struct parse_events__term test_terms[] = {
78 .type_term = PARSE_EVENTS__TERM_TYPE_USER, 78 .type_term = PARSE_EVENTS__TERM_TYPE_USER,
79 }, 79 },
80}; 80};
81#define TERMS_CNT (sizeof(test_terms) / sizeof(struct parse_events__term)) 81#define TERMS_CNT (sizeof(test_terms) / sizeof(struct parse_events_term))
82 82
83/* 83/*
84 * Prepare format directory data, exported by kernel 84 * Prepare format directory data, exported by kernel