Update cpudist.py
When calculating the ONCPU  time, prev has left the CPU already. It is not necessary to judge whether the process state is TASK_RUNNING or not.
@@ -100,11 +100,6 @@ int sched_switch(struct pt_regs *ctx, struct task_struct *prev)
u64 pid_tgid = bpf_get_current_pid_tgid();
u32 tgid = pid_tgid >> 32, pid = pid_tgid;
-#ifdef ONCPU
- if (prev->state == TASK_RUNNING) {
-#else
- if (1) {
-#endif
u32 prev_pid = prev->pid;
u32 prev_tgid = prev->tgid;
#ifdef ONCPU
@@ -112,7 +107,6 @@ int sched_switch(struct pt_regs *ctx, struct task_struct *prev)
#else
store_start(prev_tgid, prev_pid, ts);
#endif
- }
BAIL:
#ifdef ONCPU
