History

entry_Add_enter_from_user_mode_wrapper

To be called from architecture specific code if the combo interfaces are not suitable. It simply calls __enter_from_user_mode(). This way __enter_from_user_mode will still be inlined because it is declared static __always_inline. [ tglx: Amend comments and move it to a different location in the header ]

Sven Schnelle committed 5 years ago

Commit 96e2fbc1 parent bb793562 files · +29 −11Browse files

Showing the changes to kernel (1 of 2 files). Show all

Unified · Split

kernel/entry/common.c+6−10
@@ -10,16 +10,7 @@ · 9 unmodified lines
10#define CREATE_TRACE_POINTS10#define CREATE_TRACE_POINTS
11#include <trace/events/syscalls.h>11#include <trace/events/syscalls.h>
12 12
13/**13/* See comment for enter_from_user_mode() in entry-common.h */
14 * __enter_from_user_mode - Establish state when coming from user mode
15 *
16 * Syscall/interrupt entry disables interrupts, but user mode is traced as
17 * interrupts enabled. Also with NO_HZ_FULL RCU might be idle.
18 *
19 * 1) Tell lockdep that interrupts are disabled
20 * 2) Invoke context tracking if enabled to reactivate RCU
21 * 3) Trace interrupts off state
22 */
23static __always_inline void __enter_from_user_mode(struct pt_regs *regs)14static __always_inline void __enter_from_user_mode(struct pt_regs *regs)
24{15{
25 arch_check_user_regs(regs);16 arch_check_user_regs(regs);
@@ -33,6 +24,11 @@ static __always_inline void __enter_from_user_mode(struct pt_regs *regs) · 7 unmodified lines
33 instrumentation_end();24 instrumentation_end();
34}25}
35 26
27void noinstr enter_from_user_mode(struct pt_regs *regs)
28{
29 __enter_from_user_mode(regs);
30}
31
36static inline void syscall_enter_audit(struct pt_regs *regs, long syscall)32static inline void syscall_enter_audit(struct pt_regs *regs, long syscall)
37{33{
38 if (unlikely(audit_context())) {34 if (unlikely(audit_context())) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t