perf header: Don't pass struct perf_file_section to process_##_feat
authorDavid Carrillo-Cisneros <[email protected]>
Tue, 18 Jul 2017 04:25:42 +0000 (21:25 -0700)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 19 Jul 2017 02:14:33 +0000 (23:14 -0300)
commit625524572391326b83f906efe02abbaac9debce6
tree51e1f8d86538d91a997ed338eeb4fe822a7bb7a6
parent1a22275449f4bd6255e24f0c5b6c7fa61b263417
perf header: Don't pass struct perf_file_section to process_##_feat

struct perf_file_section is used in process_##_feat as container for
size and offset in the file descriptor. These attributes are meaninful
in pipe-mode but struct perf_file_section is not.

Add offset and size variables to struct feat_fd to store
perf_file_section's values in file-mode. Later on, the same variables
can be reused for pipe-mode.

This patch does not change behavior.

Signed-off-by: David Carrillo-Cisneros <[email protected]>
Acked-by: David Ahern <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: He Kuang <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Turner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Simon Que <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/header.c