tools/tracing/rtla/src/actions.h
Source file repositories/reference/linux-study-clean/tools/tracing/rtla/src/actions.h
File Facts
- System
- Linux kernel
- Corpus path
tools/tracing/rtla/src/actions.h- Extension
.h- Size
- 1327 bytes
- Lines
- 58
- 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
tracefs.hstdbool.h
Detected Declarations
struct actionstruct actionsenum action_type
Annotated Snippet
struct action {
enum action_type type;
union {
struct {
/* For ACTION_TRACE_OUTPUT */
char *trace_output;
};
struct {
/* For ACTION_SIGNAL */
int signal;
int pid;
};
struct {
/* For ACTION_SHELL */
char *command;
};
};
};
static const int action_default_size = 8;
struct actions {
struct action *list;
int len, size;
bool present[ACTION_FIELD_N];
bool continue_flag;
/* External dependencies */
struct tracefs_instance *trace_output_inst;
};
#define for_each_action(actions, action) \
for ((action) = (actions)->list; \
(action) < (actions)->list + (actions)->len; \
(action)++)
void actions_init(struct actions *self);
void actions_destroy(struct actions *self);
void actions_add_trace_output(struct actions *self, const char *trace_output);
void actions_add_signal(struct actions *self, int signal, int pid);
void actions_add_shell(struct actions *self, const char *command);
void actions_add_continue(struct actions *self);
int actions_parse(struct actions *self, const char *trigger, const char *tracefn);
int actions_perform(struct actions *self);
Annotation
- Immediate include surface: `tracefs.h`, `stdbool.h`.
- Detected declarations: `struct action`, `struct actions`, `enum action_type`.
- 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.