]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
perf stat: Define a structure for per-thread shadow stats
authorJin Yao <yao.jin@linux.intel.com>
Tue, 5 Dec 2017 14:03:01 +0000 (22:03 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 27 Dec 2017 15:15:42 +0000 (12:15 -0300)
commite5fcc2abc353be94548080d84de3269ef6cc2af6
treee6e589579790d60b5331eba9d69994e72f1a9672
parentfaaf95677f33dac910b6cbe917cabea43c8c1616
perf stat: Define a structure for per-thread shadow stats

Perf has a set of static variables to record the runtime shadow metrics
stats.

While if we want to record the runtime shadow stats for per-thread, it
will be the limitation. This patch creates a structure and the next
patches will use this structure to update the runtime shadow stats for
per-thread.

Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1512482591-4646-2-git-send-email-yao.jin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/stat-shadow.c
tools/perf/util/stat.h