tools/perf/util/arm-spe-decoder/arm-spe-decoder.h
Source file repositories/reference/linux-study-clean/tools/perf/util/arm-spe-decoder/arm-spe-decoder.h
File Facts
- System
- Linux kernel
- Corpus path
tools/perf/util/arm-spe-decoder/arm-spe-decoder.h- Extension
.h- Size
- 4425 bytes
- Lines
- 160
- 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
stdbool.hstddef.hstdint.harm-spe-pkt-decoder.h
Detected Declarations
struct arm_spe_recordstruct arm_spe_insnstruct arm_spe_bufferstruct arm_spe_paramsstruct arm_spe_decoderenum arm_spe_op_typeenum arm_spe_2nd_op_ldstenum arm_spe_2nd_op_branchenum arm_spe_common_data_sourceenum arm_spe_ampereone_data_sourceenum arm_spe_hisi_hip_data_source
Annotated Snippet
struct arm_spe_record {
u64 type;
int err;
u32 op;
u32 latency;
u64 from_ip;
u64 to_ip;
u64 prev_br_tgt;
u64 timestamp;
u64 virt_addr;
u64 phys_addr;
u64 context_id;
u16 source;
};
struct arm_spe_insn;
struct arm_spe_buffer {
const unsigned char *buf;
size_t len;
u64 offset;
u64 trace_nr;
};
struct arm_spe_params {
int (*get_trace)(struct arm_spe_buffer *buffer, void *data);
void *data;
};
struct arm_spe_decoder {
int (*get_trace)(struct arm_spe_buffer *buffer, void *data);
void *data;
struct arm_spe_record record;
const unsigned char *buf;
size_t len;
struct arm_spe_pkt packet;
};
struct arm_spe_decoder *arm_spe_decoder_new(struct arm_spe_params *params);
void arm_spe_decoder_free(struct arm_spe_decoder *decoder);
int arm_spe_decode(struct arm_spe_decoder *decoder);
#endif
Annotation
- Immediate include surface: `stdbool.h`, `stddef.h`, `stdint.h`, `arm-spe-pkt-decoder.h`.
- Detected declarations: `struct arm_spe_record`, `struct arm_spe_insn`, `struct arm_spe_buffer`, `struct arm_spe_params`, `struct arm_spe_decoder`, `enum arm_spe_op_type`, `enum arm_spe_2nd_op_ldst`, `enum arm_spe_2nd_op_branch`, `enum arm_spe_common_data_source`, `enum arm_spe_ampereone_data_source`.
- 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.