Skip to content

Commit

Permalink
fix(bpf): use prev_tgid to register process
Browse files Browse the repository at this point in the history
Signed-off-by: Vimal Kumar <[email protected]>
  • Loading branch information
vimalk78 committed Aug 14, 2024
1 parent 58ac66f commit a97030f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpf/kepler.bpf.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ static inline int do_kepler_sched_switch_trace(
bpf_map_update_elem(&pid_time_map, &next_pid, &curr_ts, BPF_ANY);

// create new process metrics
register_new_process_if_not_exist(next_tgid);
register_new_process_if_not_exist(prev_tgid);

return 0;
}
Expand Down

0 comments on commit a97030f

Please sign in to comment.