Commit ebc2d044 authored by Prateek Sood's avatar Prateek Sood Committed by Matthias Männich
Browse files

ANDROID: ftrace: add more vendor hook for ftrace dump on oops



The aosp/1562075 add the following vendor hooks in ftrace oops path
to allow vendor modules to get ftrace buffer data.

1) android_vh_ftrace_oops_enter
2) android_vh_ftrace_size_check
3) android_vh_ftrace_format_check
4) android_vh_ftrace_dump_buffer
5) android_vh_ftrace_oops_exit

Ftrace dump on oops can be controlled with kernel command
line parameter ftrace_dump_on_oops.

However the commit b8e1f899 ("ANDROID: ftrace: vendor hook for ftrace dump on oops")
only cherry-pick android_vh_ftrace_format_check vh.

But following vendor hooks in ftrace oops path was not added.

1) android_vh_ftrace_oops_enter
2) android_vh_ftrace_size_check
3) android_vh_ftrace_dump_buffer
4) android_vh_ftrace_oops_exit

So add these to allow vendor modules to get ftrace buffer data.

Bug: 177387994
Signed-off-by: default avatarPrateek Sood <prsood@codeaurora.org>
Signed-off-by: default avatarMukesh Ojha <mojha@codeaurora.org>
[xuewen: minor conflicts fixups]
Change-Id: I00328101bc7e1092ce7a0b50c2d47ab8288e0067
Signed-off-by: default avatarXuewen Yan <xuewen.yan@unisoc.com>
(cherry picked from commit fbbc48ef)
parent 302a3250
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment