aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorLothar Rubusch <l.rubusch@gmail.com>2025-07-27 21:00:11 +0000
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-08-16 11:57:07 +0100
commit31f7679bb69abfd3a0175608f8b0ee721cea8544 (patch)
treec4241b4bb0823f5c376791e4b0e42eb2a184427a /tools/perf/scripts/python/syscall-counts.py
parentiio: accel: adxl345: add inactivity feature (diff)
downloadlinux-31f7679bb69abfd3a0175608f8b0ee721cea8544.tar.gz
linux-31f7679bb69abfd3a0175608f8b0ee721cea8544.zip
iio: accel: adxl345: add coupling detection for activity/inactivity
Enable AC/DC coupling configuration for activity and inactivity detection by setting the AC/DC bit. Extend existing magnitude-based detection with adaptive AC-coupled mode. Use DC-coupled mode to compare acceleration samples directly against configured thresholds. Use AC-coupled mode to compare samples against a reference taken at the start of activity detection. Implement DC-coupled events using MAG, and AC-coupled events using MAG_ADAPTIVE. Expose configuration of thresholds and periods via separate sysfs handles. Note that both coupling modes share the same sensor registers, so activity or inactivity detection cannot be configured for both AC and DC simultaneously. Apply the most recently configured mode. Simplify event handling and support adaptive AC-coupling. Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com> Link: https://patch.msgid.link/20250727210014.27766-5-l.rubusch@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions