Add hook to show the more information about cpu, when cat /proc/cpuinfo , some chip info will be appended. Bug: 341597636 Change-Id: I4dbf7ba305a428f3dcf71e71d700a51dac8f7be0 Signed-off-by: Dezhi Huang <huangdezhi@hihonor.com> (cherry picked from commit 08c63cde8c2bbdd5ab44c4f644422764f9b9ad14)
19 lines
482 B
C
19 lines
482 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM cpuinfo
|
|
|
|
#define TRACE_INCLUDE_PATH trace/hooks
|
|
|
|
#if !defined(_TRACE_HOOK_CPUINFO_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_HOOK_CPUINFO_H
|
|
|
|
#include <trace/hooks/vendor_hooks.h>
|
|
|
|
DECLARE_RESTRICTED_HOOK(android_rvh_cpuinfo_c_show,
|
|
TP_PROTO(struct seq_file *m),
|
|
TP_ARGS(m), 1);
|
|
|
|
#endif /* _TRACE_HOOK_CPUINFO_H */
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|