Fix for improper includes in runqlat.py
authorBrenden Blanco <bblanco@plumgrid.com>
Wed, 10 Feb 2016 23:42:16 +0000 (15:42 -0800)
committerBrenden Blanco <bblanco@plumgrid.com>
Wed, 10 Feb 2016 23:42:16 +0000 (15:42 -0800)
Fixes: #367
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
tools/runqlat.py

index 558981d..a1e73aa 100755 (executable)
@@ -59,7 +59,7 @@ debug = 0
 # define BPF program
 bpf_text = """
 #include <uapi/linux/ptrace.h>
-#include "kernel/sched/sched.h"
+#include <linux/sched.h>
 
 typedef struct pid_key {
     u64 pid;    // work around
@@ -68,6 +68,8 @@ typedef struct pid_key {
 BPF_HASH(start, u32);
 STORAGE
 
+struct rq;
+
 // record enqueue timestamp
 int trace_enqueue(struct pt_regs *ctx, struct rq *rq, struct task_struct *p,
     int flags)