Commit 849f83d2 authored by Brenden Blanco's avatar Brenden Blanco

Merge pull request #368 from iovisor/runqlat-fix

Fix for improper includes in runqlat.py
parents 21878139 11a21c86
...@@ -59,7 +59,7 @@ debug = 0 ...@@ -59,7 +59,7 @@ debug = 0
# define BPF program # define BPF program
bpf_text = """ bpf_text = """
#include <uapi/linux/ptrace.h> #include <uapi/linux/ptrace.h>
#include "kernel/sched/sched.h" #include <linux/sched.h>
typedef struct pid_key { typedef struct pid_key {
u64 pid; // work around u64 pid; // work around
...@@ -68,6 +68,8 @@ typedef struct pid_key { ...@@ -68,6 +68,8 @@ typedef struct pid_key {
BPF_HASH(start, u32); BPF_HASH(start, u32);
STORAGE STORAGE
struct rq;
// record enqueue timestamp // record enqueue timestamp
int trace_enqueue(struct pt_regs *ctx, struct rq *rq, struct task_struct *p, int trace_enqueue(struct pt_regs *ctx, struct rq *rq, struct task_struct *p,
int flags) int flags)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment