]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Introduce stat perf.data header feature
authorJiri Olsa <jolsa@kernel.org>
Sun, 25 Oct 2015 14:51:43 +0000 (15:51 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Dec 2015 18:15:14 +0000 (15:15 -0300)
commit26117acfb9ddd08d9a5e5063a638b21a081b5751
treeb5e744e3b47bda70e63f1f10533cbce99bd4cff2
parent7c1a8ff315c329148fd56eb98912c8c59adfb045
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 <jolsa@kernel.org>
Tested-by: Kan Liang <kan.liang@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1445784728-21732-28-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/util/header.c
tools/perf/util/header.h