tools/perf/util/trace_augment.h
Source file repositories/reference/linux-study-clean/tools/perf/util/trace_augment.h
File Facts
- System
- Linux kernel
- Corpus path
tools/perf/util/trace_augment.h- Extension
.h- Size
- 1511 bytes
- Lines
- 67
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: implementation source
- Status
- source implementation candidate
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/compiler.h
Detected Declarations
struct bpf_programstruct evlistfunction augmented_syscalls__preparefunction augmented_syscalls__create_bpf_outputfunction augmented_syscalls__setup_bpf_outputfunction augmented_syscalls__get_map_fdsfunction augmented_syscalls__find_by_titlefunction augmented_syscalls__cleanup
Annotated Snippet
#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
Annotation
- Immediate include surface: `linux/compiler.h`.
- Detected declarations: `struct bpf_program`, `struct evlist`, `function augmented_syscalls__prepare`, `function augmented_syscalls__create_bpf_output`, `function augmented_syscalls__setup_bpf_output`, `function augmented_syscalls__get_map_fds`, `function augmented_syscalls__find_by_title`, `function augmented_syscalls__cleanup`.
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.