diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-21 13:48:57 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-22 16:16:57 -0400 |
commit | 1028f96226b1f4419bd5b56c3d234a83329d4f5b (patch) | |
tree | 01e72743b48c7f9d35f39aa720090c9f5c659574 /tools/perf/arch | |
parent | 43cc5d5ecbd194a730f3045547afc1fa8e694389 (diff) |
perf x86 kvm-stat: Add missing string.h header
It uses strcmp(), strstr() and was getting the required string.h header
by luck, from evsel.h -> cpumap.h -> debug.h -> string.h, add the
missing header.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-qrz8hhvrhwnmt5ocfwk4br5d@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch')
-rw-r--r-- | tools/perf/arch/x86/util/kvm-stat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/arch/x86/util/kvm-stat.c b/tools/perf/arch/x86/util/kvm-stat.c index 81b531a707bf..c0775c39227f 100644 --- a/tools/perf/arch/x86/util/kvm-stat.c +++ b/tools/perf/arch/x86/util/kvm-stat.c | |||
@@ -1,5 +1,6 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include <errno.h> | 2 | #include <errno.h> |
3 | #include <string.h> | ||
3 | #include "../../../util/kvm-stat.h" | 4 | #include "../../../util/kvm-stat.h" |
4 | #include "../../../util/evsel.h" | 5 | #include "../../../util/evsel.h" |
5 | #include <asm/svm.h> | 6 | #include <asm/svm.h> |