Skip to contentSkip to conversation

usb: gadget: functions: add ftrace export over USB

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 21, 2019 USB

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer Reviewed-by
#0 lore raw
Quoted 8 lines · Felipe Balbi

Allow for ftrace data to be exported over a USB Gadget Controller. With this, we have a potentially very fast pipe for transmitting ftrace data to a Host PC for further analysis.

Note that in order to decode the data, one needs access to kernel symbols in order to convert binary data into function names and what not.

Quoted 7 lines
---
 drivers/usb/gadget/Kconfig            |  15 +
 drivers/usb/gadget/function/Makefile  |   2 +
 drivers/usb/gadget/function/f-trace.c | 401 ++++++++++++++++++++++++++
 3 files changed, 418 insertions(+)
 create mode 100644 drivers/usb/gadget/function/f-trace.c

This is funny, nice work :)