android - Linux kernel's ftrace output format -


I have been using ftrace on Android on some different devices, but I noticed that the output format is different between them. In some cases, TGID of the present process is included, while in others it is not.

Tgid is very useful in the current application I am using ftrace at I, and I am thinking how can I enable it. I'm familiar with sysfs file "/ sys / kernel / debug / tracing / options / print-tgid", but it is not available on my devices, unfortunately. Is there a kernel option or ftrace handle that can be used to add TCID to the FTCC output format?

  # _----- => Irqs-off # / _---- = & gt; Sure-rescheduled #. / _--- = & gt; Hardcore / Softwares # || / _-- = & gt; Prepayment-Depth # ||| / Delay # TASK-PID CPU # |||| Timestamp function #. | |||| | | # ^^ (no tgid ...)  

versus

  # _----- => Irqs-off # / _---- = & gt; Sure-rescheduled #. / _--- = & gt; Hardcore / Softwares # || / _-- = & gt; Prepayment-Depth # ||| / Delay # TASK-PID TGID CPU # |||| Timestamp function #. | | |||| | | # ^^^ (TGIID is available in this column!)  

I say this That's where the functionality was added. TGID information is available in a very new version of the Linux kernel of the Android branch, and any vanilla Linux kernel version (which I know). If you apply patch to the kernel source tree and you apply it, you should be set. You may have to apply an enema in the patch manually, but you should set it after it is added.


Comments