metric: use free_fair_sched_group() to track the tg free

Change-Id: I7ff23bbe27be6598c98e2576e6a4d6d5e21323e1
Signed-off-by: Honglei Wang <jameshongleiwang@126.com>
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
This commit is contained in:
Honglei Wang 2025-07-15 03:42:24 -04:00 committed by Tonghao Zhang
parent dffa1284a2
commit 72516b8d42
1 changed files with 2 additions and 2 deletions

View File

@ -306,8 +306,8 @@ int sched_process_exit_entry(struct bpf_raw_tracepoint_args *ctx)
#ifdef TG_ADDR_KEY
// When cgroup is removed, the record should be deleted.
SEC("kprobe/sched_free_group")
int sched_free_group_entry(struct pt_regs *ctx)
SEC("kprobe/free_fair_sched_group")
int free_fair_sched_group_entry(struct pt_regs *ctx)
{
struct task_group *tg = (void *)PT_REGS_PARM1(ctx);
struct stat_t *entry;