Lines Matching refs:t
105 static inline int get_task_state(struct task_struct *t) in get_task_state() argument
108 struct task_struct___new *t_new = (void *)t; in get_task_state()
114 struct task_struct___old *t_old = (void *)t; in get_task_state()
120 static inline __u64 get_cgroup_id(struct task_struct *t) in get_cgroup_id() argument
125 return BPF_CORE_READ(t, cgroups, dfl_cgrp, kn, id); in get_cgroup_id()
136 cgrp = BPF_CORE_READ(t, cgroups, subsys[perf_subsys_id], cgroup); in get_cgroup_id()
140 static inline int can_record(struct task_struct *t, int state) in can_record() argument
143 if (t->flags & PF_KTHREAD) in can_record()
164 pid = t->tgid; in can_record()
166 pid = t->pid; in can_record()
175 __u64 cgrp_id = get_cgroup_id(t); in can_record()