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:Carlos Llamas <cmllamas@google.com>
Loading
Please sign in to comment