Re: [RFC PATCH bpf-next v2 2/2] bpf: Pass external callchain entry to get_perf_callchain
From: Tao Chen
Date: Tue Oct 14 2025 - 08:35:18 EST
在 2025/10/14 20:14, Jiri Olsa 写道:
+ struct bpf_perf_callchain_entry entry = { 0 };so IIUC having entries on stack we do not need to do preempt_disable
you had in the previous version, right?
Yes, i think so, preempt_disable seems unnecessary.
I saw Andrii's justification to have this on the stack, I think it's
fine, but does it have to be initialized? it seems that only used
entries are copied to map
That makes sense. Removing it definitely looks better.
--
Best Regards
Tao Chen