summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorVicki Pfau <vi@endrift.com>2026-07-29 21:12:25 -0700
committerJiri Kosina <jkosina@suse.com>2026-08-03 21:00:26 +0200
commit3d3c6ab5b07e16ed73070076e4b7f5130da2404f (patch)
tree577093e9db64ee9037e32fcba99697d1304480d2 /tools/perf/scripts/python/bin/stackcollapse-record
parent749111cf5cbd348e6ad439a032bddb969a1ad583 (diff)
HID: steam: Refactor and clean up report parsing
This switches from a parsing style where each button or axis is parsed individually out of a report using !!(byte & BIT(x)) style. This commit switches it to a mostly unified approach of defining a list of individual mappings in an array and passing it to a function that handles all of the extraction. Theoretically this is more lines, but in practice it results in (subjectively) cleaner code. Some exceptions still need to be made for things like handling the lizard mode toggle key, but in general there's a lot less manual code. Signed-off-by: Vicki Pfau <vi@endrift.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions