diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-21 14:48:57 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-22 17:16:57 -0300 |
commit | 1028f96226b1f4419bd5b56c3d234a83329d4f5b (patch) | |
tree | 01e72743b48c7f9d35f39aa720090c9f5c659574 /tools/perf/arch/x86 | |
parent | 43cc5d5ecbd194a730f3045547afc1fa8e694389 (diff) | |
download | linux-stable-1028f96226b1f4419bd5b56c3d234a83329d4f5b.tar.gz linux-stable-1028f96226b1f4419bd5b56c3d234a83329d4f5b.tar.bz2 linux-stable-1028f96226b1f4419bd5b56c3d234a83329d4f5b.zip |
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/x86')
-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 @@ // SPDX-License-Identifier: GPL-2.0 #include <errno.h> +#include <string.h> #include "../../../util/kvm-stat.h" #include "../../../util/evsel.h" #include <asm/svm.h> |