From aa124dd106c2feb54e50186383dd054df5fa67a9 Mon Sep 17 00:00:00 2001 From: Sasha Goldshtein Date: Fri, 31 Mar 2017 17:16:45 -0400 Subject: [PATCH] db*: Use uapi/linux/ptrace.h instead of linux/ptrace.h --- tools/dbslower.py | 2 +- tools/dbstat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/dbslower.py b/tools/dbslower.py index 63cb75cb48d1..85b6b4b81a66 100755 --- a/tools/dbslower.py +++ b/tools/dbslower.py @@ -54,7 +54,7 @@ threshold_ns = args.threshold * 1000000 program = """ -#include +#include struct temp_t { u64 timestamp; diff --git a/tools/dbstat.py b/tools/dbstat.py index 72f6588faa91..a96cae2d1dd3 100755 --- a/tools/dbstat.py +++ b/tools/dbstat.py @@ -52,7 +52,7 @@ "pidof postgres".split()).split()) program = """ -#include +#include BPF_HASH(temp, u64, u64); BPF_HISTOGRAM(latency);