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)
commitde5077c4e38f2a51f50d28bdd5e4a0f14b3d16ff
tree95de3aa45603112fa658a9b12f9e2e591bec57e9
parent77d0871c76bad1093a3d86870fe76dd1ad0ca397
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]