perf tools: Introduce stat perf.data header feature
authorJiri Olsa <[email protected]>
Sun, 25 Oct 2015 14:51:43 +0000 (15:51 +0100)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 17 Dec 2015 18:15:14 +0000 (15:15 -0300)
commitffa517adf625fa6a6c168285534e1ff7344fa2f1
treeb5e744e3b47bda70e63f1f10533cbce99bd4cff2
parent2d2aea6ae736503d3896c4997b494760ed8febc1
perf tools: Introduce stat perf.data header feature

Introducing the 'stat' feature to mark a perf.data as created by  the
'perf stat record' command. It contains no data.

It's needed so that the report tools (report/script) can differentiate
sampling data from counting data, because they need to be treated in a
different way.

In the future it might be used to store the version of the stat storage
system used.

Signed-off-by: Jiri Olsa <[email protected]>
Tested-by: Kan Liang <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/builtin-record.c
tools/perf/util/header.c
tools/perf/util/header.h