ANDROID: vendor_hooks:add restricted hook for logbuf
Fix the timestamp in front of the log is out of order when using android_vh_logbuf with CPU core is offline. Bug: 364443023 Change-Id: Ib37f4373d3511aaf765838bf581c84ed22992a77 Signed-off-by: Xandy.Xiong <xiongliang@xiaomi.com> (cherry picked from commit 9b44f2fb794ccd5a17777e317bec959558d21f9e)
This commit is contained in:
committed by
Treehugger Robot
parent
37b34c5df3
commit
6fa673a171
@@ -352,6 +352,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_futex_wake_this);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_futex_wake_up_q_finish);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_report_bug);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_logbuf);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_logbuf);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_cpufreq_acct_update_power);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_tune_swappiness);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_logbuf_pr_cont);
|
||||
|
||||
@@ -12,6 +12,10 @@
|
||||
struct printk_ringbuffer;
|
||||
struct printk_record;
|
||||
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_logbuf,
|
||||
TP_PROTO(struct printk_ringbuffer *rb, struct printk_record *r),
|
||||
TP_ARGS(rb, r), true)
|
||||
|
||||
DECLARE_HOOK(android_vh_logbuf,
|
||||
TP_PROTO(struct printk_ringbuffer *rb, struct printk_record *r),
|
||||
TP_ARGS(rb, r))
|
||||
|
||||
@@ -2361,6 +2361,7 @@ int vprintk_store(int facility, int level,
|
||||
else
|
||||
prb_final_commit(&e);
|
||||
|
||||
trace_android_rvh_logbuf(prb, &r);
|
||||
trace_android_vh_logbuf(prb, &r);
|
||||
ret = text_len + trunc_msg_len;
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user