tools/tracing/rtla/src/timerlat_bpf.h
Source file repositories/reference/linux-study-clean/tools/tracing/rtla/src/timerlat_bpf.h
File Facts
- System
- Linux kernel
- Corpus path
tools/tracing/rtla/src/timerlat_bpf.h- Extension
.h- Size
- 1787 bytes
- Lines
- 63
- 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
- No C-style include directives detected by the generator.
Detected Declarations
enum summary_fieldfunction have_libbpf_supportfunction timerlat_bpf_initfunction timerlat_bpf_attachfunction timerlat_bpf_detachfunction timerlat_bpf_destroyfunction timerlat_bpf_waitfunction timerlat_bpf_restart_tracingfunction timerlat_bpf_get_hist_valuefunction timerlat_bpf_get_summary_valuefunction timerlat_load_bpf_action_programfunction have_libbpf_support
Annotated Snippet
static inline int have_libbpf_support(void) { return 1; }
#else
static inline int timerlat_bpf_init(struct timerlat_params *params)
{
return -1;
}
static inline int timerlat_bpf_attach(void) { return -1; }
static inline void timerlat_bpf_detach(void) { };
static inline void timerlat_bpf_destroy(void) { };
static inline int timerlat_bpf_wait(int timeout) { return -1; }
static inline int timerlat_bpf_restart_tracing(void) { return -1; };
static inline int timerlat_bpf_get_hist_value(int key,
long long *value_irq,
long long *value_thread,
long long *value_user)
{
return -1;
}
static inline int timerlat_bpf_get_summary_value(enum summary_field key,
long long *value_irq,
long long *value_thread,
long long *value_user)
{
return -1;
}
static inline int timerlat_load_bpf_action_program(const char *program_path)
{
return -1;
}
static inline int have_libbpf_support(void) { return 0; }
#endif /* HAVE_BPF_SKEL */
#endif /* __bpf__ */
Annotation
- Detected declarations: `enum summary_field`, `function have_libbpf_support`, `function timerlat_bpf_init`, `function timerlat_bpf_attach`, `function timerlat_bpf_detach`, `function timerlat_bpf_destroy`, `function timerlat_bpf_wait`, `function timerlat_bpf_restart_tracing`, `function timerlat_bpf_get_hist_value`, `function timerlat_bpf_get_summary_value`.
- 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.