Skip to content

Commit 2e8b1a1

Browse files
lenticularis39rostedt
authored andcommitted
rtla: Fix build without libbpf header
rtla supports building without libbpf. However, BPF actions patchset [1] adds an include of bpf/libbpf.h into timerlat_bpf.h, which breaks build on systems that don't have libbpf headers installed. This is a leftover from a draft version of the patchset where timerlat_bpf_set_action() (which takes a struct bpf_program * argument) was defined in the header. timerlat_bpf.c already includes bpf/libbpf.h via timerlat.skel.h when libbpf is present. Remove the redundant include to fix build on systems without libbpf headers. [1] https://lore.kernel.org/linux-trace-kernel/[email protected]/T/ Cc: John Kacur <[email protected]> Cc: Luis Goncalves <[email protected]> Cc: Crystal Wood <[email protected]> Cc: Costa Shulyupin <[email protected]> Link: https://patch.msgid.link/[email protected] Reported-by: Steven Rostedt (Google) <[email protected]> Closes: https://lore.kernel.org/linux-trace-kernel/20260329122202.65a8b575@robin/ Fixes: 8cd0f08 ("rtla/timerlat: Support tail call from BPF program") Signed-off-by: Tomas Glozar <[email protected]> Reviewed-by: Wander Lairson Costa <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 6ea8a20 commit 2e8b1a1

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

tools/tracing/rtla/src/timerlat_bpf.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ enum summary_field {
1212
};
1313

1414
#ifndef __bpf__
15-
#include <bpf/libbpf.h>
1615
#ifdef HAVE_BPF_SKEL
1716
int timerlat_bpf_init(struct timerlat_params *params);
1817
int timerlat_bpf_attach(void);

0 commit comments

Comments
 (0)