drivers/iio/common/cros_ec_sensors/cros_ec_sensors_trace.c
Source file repositories/reference/linux-study-clean/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_trace.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_trace.c- Extension
.c- Size
- 1273 bytes
- Lines
- 33
- Domain
- Driver Families
- Bucket
- drivers/iio
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
Dependency Surface
cros_ec_sensors_trace.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
// Trace events for the ChromeOS Embedded Controller
//
// Copyright 2025 Google LLC.
#define TRACE_SYMBOL(a) {a, #a}
// Generate the list using the following script:
// sed -n 's/^.*\(MOTIONSENSE_CMD.*\) = .*,$/\tTRACE_SYMBOL(\1), \\/p' include/linux/platform_data/cros_ec_commands.h
#define MOTIONSENSE_CMDS \
TRACE_SYMBOL(MOTIONSENSE_CMD_DUMP), \
TRACE_SYMBOL(MOTIONSENSE_CMD_INFO), \
TRACE_SYMBOL(MOTIONSENSE_CMD_EC_RATE), \
TRACE_SYMBOL(MOTIONSENSE_CMD_SENSOR_ODR), \
TRACE_SYMBOL(MOTIONSENSE_CMD_SENSOR_RANGE), \
TRACE_SYMBOL(MOTIONSENSE_CMD_KB_WAKE_ANGLE), \
TRACE_SYMBOL(MOTIONSENSE_CMD_DATA), \
TRACE_SYMBOL(MOTIONSENSE_CMD_FIFO_INFO), \
TRACE_SYMBOL(MOTIONSENSE_CMD_FIFO_FLUSH), \
TRACE_SYMBOL(MOTIONSENSE_CMD_FIFO_READ), \
TRACE_SYMBOL(MOTIONSENSE_CMD_PERFORM_CALIB), \
TRACE_SYMBOL(MOTIONSENSE_CMD_SENSOR_OFFSET), \
TRACE_SYMBOL(MOTIONSENSE_CMD_LIST_ACTIVITIES), \
TRACE_SYMBOL(MOTIONSENSE_CMD_SET_ACTIVITY), \
TRACE_SYMBOL(MOTIONSENSE_CMD_LID_ANGLE), \
TRACE_SYMBOL(MOTIONSENSE_CMD_FIFO_INT_ENABLE), \
TRACE_SYMBOL(MOTIONSENSE_CMD_SPOOF), \
TRACE_SYMBOL(MOTIONSENSE_CMD_TABLET_MODE_LID_ANGLE), \
TRACE_SYMBOL(MOTIONSENSE_CMD_SENSOR_SCALE)
#define CREATE_TRACE_POINTS
#include "cros_ec_sensors_trace.h"
Annotation
- Immediate include surface: `cros_ec_sensors_trace.h`.
- Atlas domain: Driver Families / drivers/iio.
- 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.