Files
kernel_common_drivers/drivers/debug/debug_misc.c
T
qiankun.wang 15c95c9b2d trace: fix crash when open function_graph. [1/1]
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>
2023-04-10 06:14:09 -07:00

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);
}