user_ptr_addr() should be used to obtain the address of a user pointer, such as sa.sa_handler.
Signed-off-by: Kevin Brodsky kevin.brodsky@arm.com ---
Apologies, I sent the previous patch a bit too soon - it is sufficient for !PCuABI, but for PCuABI we also need this one to fix a classic downcast issue.
include/trace/events/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/trace/events/signal.h b/include/trace/events/signal.h index 1db7e4b07c01..df86af0144bc 100644 --- a/include/trace/events/signal.h +++ b/include/trace/events/signal.h @@ -110,7 +110,7 @@ TRACE_EVENT(signal_deliver, TP_fast_assign( __entry->sig = sig; TP_STORE_SIGINFO(__entry, info); - __entry->sa_handler = (unsigned long)ka->sa.sa_handler; + __entry->sa_handler = user_ptr_addr(ka->sa.sa_handler); __entry->sa_flags = ka->sa.sa_flags; ),