projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2187813
)
Fix for improper includes in runqlat.py
author
Brenden Blanco
<bblanco@plumgrid.com>
Wed, 10 Feb 2016 23:42:16 +0000
(15:42 -0800)
committer
Brenden 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
patch
|
blob
|
history
diff --git
a/tools/runqlat.py
b/tools/runqlat.py
index
558981d
..
a1e73aa
100755
(executable)
--- a/
tools/runqlat.py
+++ b/
tools/runqlat.py
@@
-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)