mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
15c95c9b2d
PD#SWPL-114246 Problem: The system crashs when echo function_graph > current_tracer Solution: disable the function of "irq check" when enable function_graph. Verify: SC2 Change-Id: I21247370b50550bce8d4551527a308b49e26b247 Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
31 lines
764 B
C
31 lines
764 B
C
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#include <linux/mm.h>
|
|
#include <linux/reboot.h>
|
|
#include <linux/sysrq.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/module.h>
|
|
#include <linux/moduleparam.h>
|
|
#include <trace/hooks/gic_v3.h>
|
|
|
|
#include "lockup.h"
|
|
|
|
void notrace irq_trace_start_gki_builtin(unsigned long flags)
|
|
{
|
|
trace_android_rvh_gic_v3_set_affinity((void *)DEBUG_HOOK_MAGIC,
|
|
(void *)DEBUG_HOOK_IRQ_START,
|
|
(void *)flags,
|
|
0, 0, 0, 0);
|
|
}
|
|
|
|
void notrace irq_trace_stop_gki_builtin(unsigned long flags)
|
|
{
|
|
trace_android_rvh_gic_v3_set_affinity((void *)DEBUG_HOOK_MAGIC,
|
|
(void *)DEBUG_HOOK_IRQ_STOP,
|
|
(void *)flags,
|
|
0, 0, 0, 0);
|
|
}
|