diff options
author | 2014-11-04 21:55:57 -0500 | |
---|---|---|
committer | 2015-02-18 17:16:01 +0100 | |
commit | 27ac905b8f88d28779b0661809286b5ba2817d37 (patch) | |
tree | fba88a53448a59d56df83895a087ebff5d032620 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | perf/x86/amd/ibs: Convert force_ibs_eilvt_setup() to void (diff) | |
download | linux-dev-27ac905b8f88d28779b0661809286b5ba2817d37.tar.xz linux-dev-27ac905b8f88d28779b0661809286b5ba2817d37.zip |
perf/x86/intel: Reduce lbr_sel_map[] size
The index of lbr_sel_map is bit value of perf branch_sample_type.
PERF_SAMPLE_BRANCH_MAX is 1024 at present, so each lbr_sel_map uses
4096 bytes. By using bit shift as index, we can reduce lbr_sel_map
size to 40 bytes. This patch defines 'bit shift' for branch types,
and use 'bit shift' to define lbr_sel_maps.
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Kan Liang <kan.liang@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Stephane Eranian <eranian@google.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: jolsa@redhat.com
Cc: linux-api@vger.kernel.org
Link: http://lkml.kernel.org/r/1415156173-10035-2-git-send-email-kan.liang@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions