Re: [PATCH 2/2] perf tests: Add a test case for checking sw clock event frequency

2013-03-18 Thread Namhyung Kim
Hi Arnaldo, On Mon, 18 Mar 2013 11:42:43 -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Mar 18, 2013 at 11:41:47AM +0900, Namhyung Kim escreveu: >> +static int __test__sw_clock_freq(enum perf_sw_ids clock_id) >> +{ >> +int i, err = -1; >> +volatile int tmp = 0; >> +u64 total_periods

Re: [PATCH 2/2] perf tests: Add a test case for checking sw clock event frequency

2013-03-18 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 18, 2013 at 11:41:47AM +0900, Namhyung Kim escreveu: > +static int __test__sw_clock_freq(enum perf_sw_ids clock_id) > +{ > + int i, err = -1; > + volatile int tmp = 0; > + u64 total_periods = 0; > + int nr_samples = 0; > + union perf_event *event; > + struct perf