Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bpf_collector): fix command name in case of kernel processes
if the cgroupID for the pid is 1, it is considered as kernel process and bpf cpu time for each such process is aggregated under the same ProcessStat But the command which shows up in metric is from the first pid which created the entry in ProcessStats. It could be a kworker, or rcu_preempt, or some other kernel process. Which is misleading because it shows that process consuming most of bpf cpu time. This commit: - uses "kernel_processes" as the command for pid 1 kernel processes - sets the pid as 1 instead of the pid of the process that created the entry Signed-off-by: Vimal Kumar <[email protected]>
- Loading branch information