Re: [PATCH 10/23] perf tools: Introduce swap_header function

2013-07-22 Thread Jiri Olsa
On Fri, Jul 19, 2013 at 08:33:37PM +0900, Namhyung Kim wrote: > On Wed, 17 Jul 2013 19:49:50 +0200, Jiri Olsa wrote: > > Introducing swap_header function to make the swapping > > code more clear and extensible. > > [SNIP] > > > > +static int swap_header(struct perf_file_header *header) > > +{ >

Re: [PATCH 10/23] perf tools: Introduce swap_header function

2013-07-19 Thread Namhyung Kim
On Wed, 17 Jul 2013 19:49:50 +0200, Jiri Olsa wrote: > Introducing swap_header function to make the swapping > code more clear and extensible. [SNIP] > > +static int swap_header(struct perf_file_header *header) > +{ > + mem_bswap_64(header, offsetof(struct perf_file_header, adds_features));

[PATCH 10/23] perf tools: Introduce swap_header function

2013-07-17 Thread Jiri Olsa
Introducing swap_header function to make the swapping code more clear and extensible. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David Ahern ---