include/trace/events/asoc.h
Source file repositories/reference/linux-study-clean/include/trace/events/asoc.h
File Facts
- System
- Linux kernel
- Corpus path
include/trace/events/asoc.h- Extension
.h- Size
- 5572 bytes
- Lines
- 281
- Domain
- Repository Root And Misc
- Bucket
- include
- Inferred role
- Repository Root And Misc: implementation source
- Status
- source implementation candidate
Why This File Exists
Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/ktime.hlinux/tracepoint.hsound/jack.hsound/pcm.htrace/define_trace.h
Detected Declarations
struct snd_soc_jackstruct snd_soc_cardstruct snd_soc_dapm_widgetstruct snd_soc_dapm_path
Annotated Snippet
#undef TRACE_SYSTEM
#define TRACE_SYSTEM asoc
#if !defined(_TRACE_ASOC_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_ASOC_H
#include <linux/ktime.h>
#include <linux/tracepoint.h>
#include <sound/jack.h>
#include <sound/pcm.h>
#define DAPM_DIRECT "(direct)"
#define DAPM_ARROW(dir) (((dir) == SND_SOC_DAPM_DIR_OUT) ? "->" : "<-")
TRACE_DEFINE_ENUM(SND_SOC_DAPM_DIR_OUT);
struct snd_soc_jack;
struct snd_soc_card;
struct snd_soc_dapm_widget;
struct snd_soc_dapm_path;
DECLARE_EVENT_CLASS(snd_soc_dapm,
TP_PROTO(struct snd_soc_dapm_context *dapm, int val),
TP_ARGS(dapm, val),
TP_STRUCT__entry(
__string( card_name, snd_soc_dapm_to_card(dapm)->name)
__string( comp_name, snd_soc_dapm_to_component(dapm) ? snd_soc_dapm_to_component(dapm)->name : "(none)")
__field( int, val)
),
TP_fast_assign(
__assign_str(card_name);
__assign_str(comp_name);
__entry->val = val;
),
TP_printk("card=%s component=%s val=%d",
__get_str(card_name), __get_str(comp_name), (int)__entry->val)
);
DEFINE_EVENT(snd_soc_dapm, snd_soc_bias_level_start,
TP_PROTO(struct snd_soc_dapm_context *dapm, int val),
TP_ARGS(dapm, val)
);
DEFINE_EVENT(snd_soc_dapm, snd_soc_bias_level_done,
TP_PROTO(struct snd_soc_dapm_context *dapm, int val),
TP_ARGS(dapm, val)
);
DECLARE_EVENT_CLASS(snd_soc_dapm_basic,
TP_PROTO(struct snd_soc_card *card, int event),
TP_ARGS(card, event),
TP_STRUCT__entry(
__string( name, card->name )
__field( int, event )
),
TP_fast_assign(
__assign_str(name);
__entry->event = event;
),
TP_printk("card=%s event=%d", __get_str(name), (int)__entry->event)
);
DEFINE_EVENT(snd_soc_dapm_basic, snd_soc_dapm_start,
TP_PROTO(struct snd_soc_card *card, int event),
TP_ARGS(card, event)
);
DEFINE_EVENT(snd_soc_dapm_basic, snd_soc_dapm_done,
TP_PROTO(struct snd_soc_card *card, int event),
Annotation
- Immediate include surface: `linux/ktime.h`, `linux/tracepoint.h`, `sound/jack.h`, `sound/pcm.h`, `trace/define_trace.h`.
- Detected declarations: `struct snd_soc_jack`, `struct snd_soc_card`, `struct snd_soc_dapm_widget`, `struct snd_soc_dapm_path`.
- Atlas domain: Repository Root And Misc / include.
- 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.