Commit d1cc126c authored by Sasha Goldshtein's avatar Sasha Goldshtein

Merge remote-tracking branch 'origin/master' into alloc-hist

parents 2b19464e 849f83d2
...@@ -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