-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'riscv-for-linus-5.17-rc6' of git://git.kernel.org/pub/scm/…
…linux/kernel/git/riscv/linux Pull RISC-V fixes from Palmer Dabbelt: - A fix for the K210 sdcard defconfig, to avoid using a fixed delay for the root FS - A fix to make sure there's a proper call frame for trace_hardirqs_{on,off}(). * tag 'riscv-for-linus-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: riscv: fix oops caused by irqsoff latency tracer riscv: fix nommu_k210_sdcard_defconfig
- Loading branch information
Showing
5 changed files
with
46 additions
and
6 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
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
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
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,27 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/* | ||
* Copyright (C) 2022 Changbin Du <changbin.du@gmail.com> | ||
*/ | ||
|
||
#include <linux/irqflags.h> | ||
#include <linux/kprobes.h> | ||
#include "trace_irq.h" | ||
|
||
/* | ||
* trace_hardirqs_on/off require the caller to setup frame pointer properly. | ||
* Otherwise, CALLER_ADDR1 might trigger an pagging exception in kernel. | ||
* Here we add one extra level so they can be safely called by low | ||
* level entry code which $fp is used for other purpose. | ||
*/ | ||
|
||
void __trace_hardirqs_on(void) | ||
{ | ||
trace_hardirqs_on(); | ||
} | ||
NOKPROBE_SYMBOL(__trace_hardirqs_on); | ||
|
||
void __trace_hardirqs_off(void) | ||
{ | ||
trace_hardirqs_off(); | ||
} | ||
NOKPROBE_SYMBOL(__trace_hardirqs_off); |
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,11 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* | ||
* Copyright (C) 2022 Changbin Du <changbin.du@gmail.com> | ||
*/ | ||
#ifndef __TRACE_IRQ_H | ||
#define __TRACE_IRQ_H | ||
|
||
void __trace_hardirqs_on(void); | ||
void __trace_hardirqs_off(void); | ||
|
||
#endif /* __TRACE_IRQ_H */ |