aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAlexander Yarygin <[email protected]>2014-04-25 17:34:06 +0200
committerJiri Olsa <[email protected]>2014-04-29 14:29:48 +0200
commit615b8f99f755f8e2701f08cef9c56bd3033891a5 (patch)
tree34656ff243c7dcbefdc2e529235d77edd3aaf9b7 /tools/perf/scripts/python
parent2b9032e0ecb57de819bcf40b440e7cbd2d8f3a8c (diff)
perf tests: Add numeric identifier to evlist_test
In tests/parse-events.c test cases are declared in evlist_test[] arrays. Elements of arrays are initialized in following pattern: [i] = { .name = ..., .check = ..., }, When perf-test is running with '-v' option, 'i' variable will be printed for every existing test. However, we can't add any arch specific tests inside #ifdefs, because it will create collision between the element number inside #ifdef and the next one outside. This patch adds 'id' field in evlist_test, uses it as a test identifier and removes explicit numbering of array elements. This helps to number tests with gaps. Signed-off-by: Alexander Yarygin <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Jiri Olsa <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions