I tried to use kernel shark to record: python -c 'print("hello world")' But I got the following (in the output textbox): trace-cmd record -e all -o /home/stephen/trace.dat python -c 'print("hello world")' File "<string>", line 1 'print("hello ^ Looks like kernel shark doesn't do the shell parsing (or ask sh to do it), and so the command got garbled. It would be nice if it could do this.
I'm currently traveling and may be slow to respond. I'll be back at my normal hours on Monday, August 26th. -- Steve
I suppose "shell escaping" was incorrect, and more accurately it would be "shell quoting".
Created attachment 284633 [details] quotation parsing patch
Hi Stephen, Thanks a lot for your report, and the interesting use-case that you bring! A patch that implements a parsing (very primitive) of quoting is attached. Cheers, Yordan
Fixed by commit 9669fb0 (kernel-shark: Provide parsing for quotation marks in Record command line)