BPF_TRACE_MAX_PROGS | BPFTRACE_MAX_BPF_PROGS: Limit enable by app level or another limit is used at kernel level #2823
Unanswered
kevin-intri-form3
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi, the two are unrelated. The naming is just a coincidence. It looks like the kernel BPF_TRACE_MAX_PROGS controls how many progs can be attached to a single perf event. While the bpftrace BPFTRACE_MAX_PROGS controls how many programs bpftrace will codegen. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently we found this macro
#define BPF_TRACE_MAX_PROGS 64
and we don't know if that overlap and limit this BPFTRACE_MAX_BPF_PROGS.Do you know if they are correlated or the kernel one has the actual limit?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions