Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
67 lines
1.5 KiB
C
67 lines
1.5 KiB
C
#ifndef TRACE_AUGMENT_H
|
|
#define TRACE_AUGMENT_H
|
|
|
|
#include <linux/compiler.h>
|
|
|
|
struct bpf_program;
|
|
struct evlist;
|
|
|
|
#ifdef HAVE_BPF_SKEL
|
|
|
|
int augmented_syscalls__prepare(void);
|
|
int augmented_syscalls__create_bpf_output(struct evlist *evlist);
|
|
void augmented_syscalls__setup_bpf_output(void);
|
|
int augmented_syscalls__set_filter_pids(unsigned int nr, pid_t *pids);
|
|
int augmented_syscalls__get_map_fds(int *enter_fd, int *exit_fd, int *beauty_fd);
|
|
struct bpf_program *augmented_syscalls__find_by_title(const char *name);
|
|
struct bpf_program *augmented_syscalls__unaugmented(void);
|
|
void augmented_syscalls__cleanup(void);
|
|
|
|
#else /* !HAVE_BPF_SKEL */
|
|
|
|
static inline int augmented_syscalls__prepare(void)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
static inline int augmented_syscalls__create_bpf_output(struct evlist *evlist __maybe_unused)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
static inline void augmented_syscalls__setup_bpf_output(void)
|
|
{
|
|
}
|
|
|
|
static inline int augmented_syscalls__set_filter_pids(unsigned int nr __maybe_unused,
|
|
pid_t *pids __maybe_unused)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int augmented_syscalls__get_map_fds(int *enter_fd __maybe_unused,
|
|
int *exit_fd __maybe_unused,
|
|
int *beauty_fd __maybe_unused)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
static inline struct bpf_program *
|
|
augmented_syscalls__find_by_title(const char *name __maybe_unused)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline struct bpf_program *augmented_syscalls__unaugmented(void)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline void augmented_syscalls__cleanup(void)
|
|
{
|
|
}
|
|
|
|
#endif /* HAVE_BPF_SKEL */
|
|
|
|
#endif
|