Commit c9632561 authored by Carlos Llamas's avatar Carlos Llamas
Browse files

ANDROID: vendor_hooks: update DECLARE_HOOK macro



Upstream commit ac01fa73 ("tracepoint: Have tracepoints created with
DECLARE_TRACE() have _tp suffix"), modified the DECLARE_TRACE() macro to
append a "_tp" suffix to tracepoint names. The intention is to mark
tracepoints that are for in-kernel use only. However, this breaks the
usage of the DECLARE_HOOK() macro in Android as vendor hooks are created
with this "_tp" suffix.

Switch the DECLARE_HOOK() to use DECLARE_TRACE_EVENT(), a macro that
keeps the previous behavior without appending the suffix. The suffix is
not needed for vendor hooks, as they already use the trace_android_vh_*
naming convention for identification anyway.

Fixes: ac01fa73 ("tracepoint: Have tracepoints created with DECLARE_TRACE() have _tp suffix")
Change-Id: I26e50614c4a25c62eabc9d21a9213b9016ff428f
Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
parent f8609803
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment