Re: [PATCH 03/25] perf tests: Add framework for automated perf_event_attr tests

2012-10-31 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 31, 2012 at 12:01:20AM +0100, Jiri Olsa escreveu: > On Tue, Oct 30, 2012 at 11:01:44PM +0100, Jiri Olsa wrote: > > Adding automated test to check event's perf_event_attr values. > > SNIP > > > + > > +void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, > > +

Re: [PATCH 03/25] perf tests: Add framework for automated perf_event_attr tests

2012-10-30 Thread Jiri Olsa
On Tue, Oct 30, 2012 at 11:01:44PM +0100, Jiri Olsa wrote: > Adding automated test to check event's perf_event_attr values. > > The idea is run perf session with kidnapping sys_perf_event_open > function. For each sys_perf_event_open call we store the > perf_event_attr data to the file to be check

[PATCH 03/25] perf tests: Add framework for automated perf_event_attr tests

2012-10-30 Thread Jiri Olsa
Adding automated test to check event's perf_event_attr values. The idea is run perf session with kidnapping sys_perf_event_open function. For each sys_perf_event_open call we store the perf_event_attr data to the file to be checked later against what we expect. You can run this by: $ python ./t