usb: gadget: functions: add ftrace export over USB
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
Signed-off-by Felipe Balbi <[email protected]>--- 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 :)
Reviewed-by Greg Kroah-Hartman <[email protected]>