BACKPORT: FROMGIT: binder: add tracepoint for netlink reports
Add a tracepoint to capture the same details that are being sent through the generic netlink interface during transaction failures. This provides a useful debugging tool to observe the events independently from the netlink listeners. Signed-off-by: Carlos Llamas <cmllamas@google.com> Link: https://lore.kernel.org/r/20250727182932.2499194-6-cmllamas@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Bug: 372832477 (cherry picked from commit 8a61a53b07f23ff12330086b293b6b492d35b8a0 git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git char-misc-next) Change-Id: I5185383180787d1a237b8f583306055081a9f0d9 [cmllamas: fixed missing t->is_reply] Signed-off-by: Carlos Llamas <cmllamas@google.com>
This commit is contained in:
committed by
Treehugger Robot
parent
4b0bb18d1f
commit
e6cf4b4e36
@@ -3211,6 +3211,8 @@ static void binder_netlink_report(struct binder_proc *proc,
|
||||
BINDER_NLGRP_REPORT))
|
||||
return;
|
||||
|
||||
trace_binder_netlink_report(context, t, data_size, error, is_reply);
|
||||
|
||||
skb = genlmsg_new(GENLMSG_DEFAULT_SIZE, GFP_KERNEL);
|
||||
if (!skb)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user