forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ANDROID: Adding kprobes build configs for Cuttlefish
Bug: 181054145 Change-Id: Ibb1362479469eae9c294f71a483e500db05b04e1 Signed-off-by: Michael Specter <mikespecter@google.com>
- Loading branch information
1 parent
34de076
commit e6ceb18
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
DEFCONFIG=gki_defconfig | ||
POST_DEFCONFIG_CMDS="check_defconfig && update_kprobes_config" | ||
function update_kprobes_config() { | ||
${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \ | ||
-d LTO \ | ||
-d LTO_CLANG_THIN \ | ||
-d CFI \ | ||
-d CFI_PERMISSIVE \ | ||
-d CFI_CLANG \ | ||
-e CONFIG_DYNAMIC_FTRACE \ | ||
-e CONFIG_FUNCTION_TRACER \ | ||
-e CONFIG_IRQSOFF_TRACER \ | ||
-e CONFIG_FUNCTION_PROFILER \ | ||
-e CONFIG_PREEMPT_TRACER \ | ||
-e CONFIG_CHECKPOINT_RESTORE \ | ||
-d CONFIG_RANDOMIZE_BASE | ||
(cd ${OUT_DIR} && \ | ||
make ${CC_LD_ARG} O=${OUT_DIR} olddefconfig) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common | ||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.aarch64 | ||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki_kprobes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common | ||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.x86_64 | ||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki_kprobes | ||
|