Re: [PATCH 00/25] perf test: Add perf_event_attr tests

From: Namhyung Kim
Date: Thu Nov 01 2012 - 21:25:16 EST


Hi,

On Fri, 2 Nov 2012 00:20:56 +0100, Jiri Olsa wrote:
> On Thu, Nov 01, 2012 at 05:38:01PM -0300, Arnaldo Carvalho de Melo wrote:
>> Ah, I just pushed perf/core with this patchset, thanks!
>
> thanks,
> jirka

When using current acme/perf/core, I got this:

namhyung@sejong:perf$ ./perf test -v perf_event_attr
13: struct perf_event_attr setup :
--- start ---
running './tests/attr/test-record-count'
running './tests/attr/test-stat-group1'
Traceback (most recent call last):
File "./tests/attr.py", line 313, in <module>
main()
File "./tests/attr.py", line 304, in main
run_tests(options)
File "./tests/attr.py", line 247, in run_tests
Test(f, options).run()
File "./tests/attr.py", line 126, in __init__
self.load_events(path, self.expect)
File "./tests/attr.py", line 147, in load_events
base_items = parser_base.items('event')
File "/usr/lib64/python2.7/ConfigParser.py", line 642, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'event'
---- end ----
struct perf_event_attr setup: FAILED!

namhyung@sejong:perf$ cat tests/attr/test-stat-group1
[config]
command = stat
args = -e '{cycles,instructions}' kill >/dev/null 2>&1
ret = 1

[event-1:base-stat]
fd=1
group_fd=-1

[event-2:base-stat]
fd=2
group_fd=1
config=1
# TODO both disabled and enable_on_exec are disabled for --group option,
# enabled otherwise, check why..
disabled=1
enable_on_exec=1


Thanks,
Namhyung
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/