diff --git a/tools/oomkill.py b/tools/oomkill.py index 4f3b6ce75960..298e35363a25 100755 --- a/tools/oomkill.py +++ b/tools/oomkill.py @@ -26,8 +26,8 @@ #include struct data_t { - u64 fpid; - u64 tpid; + u32 fpid; + u32 tpid; u64 pages; char fcomm[TASK_COMM_LEN]; char tcomm[TASK_COMM_LEN]; @@ -40,7 +40,7 @@ unsigned long totalpages; struct task_struct *p = oc->chosen; struct data_t data = {}; - u32 pid = bpf_get_current_pid_tgid(); + u32 pid = bpf_get_current_pid_tgid() >> 32; data.fpid = pid; data.tpid = p->pid; data.pages = oc->totalpages;