Bug 205953

Summary: print fmt logic needs to handle offsets of functions
Product: Tools Reporter: Steven Rostedt (rostedt)
Component: Trace-cmd/KernelsharkAssignee: Steven Rostedt (rostedt)
Status: RESOLVED CODE_FIX    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: N/A Subsystem:
Regression: No Bisected commit-id:
Attachments: Patch to process the function names in print fmt file

Description Steven Rostedt 2019-12-23 20:17:00 UTC
Created attachment 286407 [details]
Patch to process the function names in print fmt file

The preempt and irq enable/disable trace events save a 32 bit offset from "_stext". But since trace-cmd does not process the "_stext" location (just returns zero), it does not show the addresses correctly.

See https://lore.kernel.org/r/20191127154428.191095-1-antonio.borneo@st.com
Comment 1 Steven Rostedt 2020-07-09 19:41:20 UTC
Fixed by commit e3207271be7d ("tools lib traceevent: Let function symbols be used in operations").