]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Add utility function to detect SMT status
authorAndi Kleen <ak@linux.intel.com>
Fri, 11 Aug 2017 23:26:22 +0000 (16:26 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 22 Aug 2017 15:09:04 +0000 (12:09 -0300)
commit502e8e682ba89c1d348d746be5b3730ff46f1dbf
tree95de3aa45603112fa658a9b12f9e2e591bec57e9
parent2e957faba01f3dd6a0218f5aa7c99d425b3c84f6
perf tools: Add utility function to detect SMT status

Add an smt_on() function to return if SMT is enabled or disabled.  Used
in the next patch.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20170811232634.30465-7-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/Build
tools/perf/util/smt.c [new file with mode: 0644]
tools/perf/util/smt.h [new file with mode: 0644]