summaryrefslogtreecommitdiffstats
path: root/tools/objtool/cfi.h
diff options
context:
space:
mode:
authorAndi Kleen2017-08-12 01:26:23 +0200
committerArnaldo Carvalho de Melo2017-08-22 17:15:53 +0200
commitd73bad06851b8d5745c11dd4ab789464f6c71b39 (patch)
tree4148380beeb025c81539867a1e7bf137219aa641 /tools/objtool/cfi.h
parentperf tools: Add utility function to detect SMT status (diff)
downloadkernel-qcow2-linux-d73bad06851b8d5745c11dd4ab789464f6c71b39.tar.gz
kernel-qcow2-linux-d73bad06851b8d5745c11dd4ab789464f6c71b39.tar.xz
kernel-qcow2-linux-d73bad06851b8d5745c11dd4ab789464f6c71b39.zip
perf tools: Expression parser enhancements for metrics
Enhance the expression parser for more complex metric formulas. - Support python style IF ELSE operators - Add an #SMT_On magic variable for formulas that depend on the SMT status. Example: 4 *( CPU_CLK_UNHALTED.THREAD_ANY / 2 ) if #SMT_on else cycles - Support MIN/MAX operations Example: min(1 , IDQ.MITE_UOPS / ( UPI * 16 * ( ICACHE.HIT + ICACHE.MISSES ) / 4.0 ) ) This is useful to fix up problems caused by multiplexing. - Support | & ^ operators - Minor cleanups and fixes - Support an \ escape for operators. This allows to specify event names like c2-residency - Support @ as an alternative for / to be able to specify pmus without conflicts with operators (like msr/tsc/ as msr@tsc@) Example: (cstate_core@c3\\-residency@ / msr@tsc@) * 100 Signed-off-by: Andi Kleen <ak@linux.intel.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Link: http://lkml.kernel.org/r/20170811232634.30465-8-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/objtool/cfi.h')
0 files changed, 0 insertions, 0 deletions