Lines Matching +full:com +full:- +full:seq
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) 2023 Chuyi Zhou <zhouchuyi@bytedance.com> */
30 if (cur_task->pid != target_pid) in BPF_PROG()
36 return -EPERM; in BPF_PROG()
38 css = &cgrp->self; in BPF_PROG()
42 if (task->pid == target_pid) in BPF_PROG()
47 return -EPERM; in BPF_PROG()
52 return cgrp->kn->id; in cgroup_id()
58 struct seq_file *seq = ctx->meta->seq; in cgroup_id_printer() local
59 struct cgroup *cgrp = ctx->cgroup; in cgroup_id_printer()
65 BPF_SEQ_PRINTF(seq, "epilogue\n"); in cgroup_id_printer()
70 if (ctx->meta->seq_num == 0) in cgroup_id_printer()
71 BPF_SEQ_PRINTF(seq, "prologue\n"); in cgroup_id_printer()
73 BPF_SEQ_PRINTF(seq, "%8llu\n", cgroup_id(cgrp)); in cgroup_id_printer()
75 css = &cgrp->self; in cgroup_id_printer()
78 if (task->pid == target_pid) in cgroup_id_printer()
95 css = &cgrp->self; in BPF_PROG()