aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/arch/x86/util/tsc.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2022-10-25 17:32:19 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-10-27 16:37:26 -0300
commit6bc13cab5798bd9b049694983ae5702666d24e83 (patch)
treedef57c5bae4b9844b2fd2e5921f38e011a200251 /tools/perf/arch/x86/util/tsc.c
parentperf unwind arm64: Remove needless event.h & thread.h includes (diff)
downloadwireguard-linux-6bc13cab5798bd9b049694983ae5702666d24e83.tar.xz
wireguard-linux-6bc13cab5798bd9b049694983ae5702666d24e83.zip
perf arch x86: Add missing stdlib.h to get free() prototype
It was getting indirectly, out of luck, add it. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/x86/util/tsc.c')
-rw-r--r--tools/perf/arch/x86/util/tsc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/arch/x86/util/tsc.c b/tools/perf/arch/x86/util/tsc.c
index eb2b5195bd02..9b99f48b923c 100644
--- a/tools/perf/arch/x86/util/tsc.c
+++ b/tools/perf/arch/x86/util/tsc.c
@@ -2,6 +2,7 @@
#include <linux/types.h>
#include <math.h>
#include <string.h>
+#include <stdlib.h>
#include "../../../util/debug.h"
#include "../../../util/tsc.h"