perf/bpf: Fix duplicate type check
Subsystems (2)
PATCH 1/1 perf/bpf: Fix duplicate type check
Remove the duplicate check on type and unify result.
Signed-off-by Florian Lehner <[email protected]>
--- kernel/events/core.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
kernel/events/core.c +1 -5
@@ -9302,10 +9302,6 @@ void perf_event_bpf_event(struct bpf_prog *prog, {struct perf_bpf_event bpf_event; -if (type <=PERF_BPF_EVENT_UNKNOWN || - type >=PERF_BPF_EVENT_MAX ) -return ; -switch (type) {case PERF_BPF_EVENT_PROG_LOAD :case PERF_BPF_EVENT_PROG_UNLOAD :
@@ -9313,7 +9309,7 @@ void perf_event_bpf_event(struct bpf_prog *prog,perf_event_bpf_emit_ksymbols (prog, type);break ;default : -break ; +return ; }if (!atomic_read (&nr_bpf_events))
Signature · 1 line
2.39.2
Quoted 3 lines · Florian Lehner
Remove the duplicate check on type and unify result.
Signed-off-by Florian Lehner <[email protected]>
Acked-by Daniel Borkmann <[email protected]>
Quoted 7 lines · Daniel Borkmann
Quoted 3 lines · Florian Lehner
Remove the duplicate check on type and unify result.
Signed-off-by Florian Lehner <[email protected]>Acked-by Daniel Borkmann <[email protected]>
Acked-by Song Liu <[email protected]>
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:
Quoted 6 lines · On Sat, 20 Jan 2024 16:09:20 +0100 you wrote:
Remove the duplicate check on type and unify result.
Signed-off-by Florian Lehner <[email protected]>--- kernel/events/core.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
Here is the summary with links:
- [bpf-next] perf/bpf: Fix duplicate type check
https://git.kernel.org/bpf/bpf-next/c/aecaa3ed48c3
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html