File tree Expand file tree Collapse file tree 5 files changed +12
-30
lines changed Expand file tree Collapse file tree 5 files changed +12
-30
lines changed Original file line number Diff line number Diff line change @@ -229,14 +229,6 @@ Adding support for it is easy: just define the macro in asm/ftrace.h and
229
229
pass the return address pointer as the 'retp' argument to
230
230
ftrace_push_return_trace().
231
231
232
- HAVE_FTRACE_NMI_ENTER
233
- ---------------------
234
-
235
- If you can't trace NMI functions, then skip this option.
236
-
237
- <details to be filled>
238
-
239
-
240
232
HAVE_SYSCALL_TRACEPOINTS
241
233
------------------------
242
234
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ config SUPERH32
71
71
select HAVE_FUNCTION_TRACER
72
72
select HAVE_FTRACE_MCOUNT_RECORD
73
73
select HAVE_DYNAMIC_FTRACE
74
- select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
75
74
select ARCH_WANT_IPC_PARSE_VERSION
76
75
select HAVE_FUNCTION_GRAPH_TRACER
77
76
select HAVE_ARCH_KGDB
Original file line number Diff line number Diff line change @@ -170,11 +170,21 @@ BUILD_TRAP_HANDLER(bug)
170
170
force_sig (SIGTRAP );
171
171
}
172
172
173
+ #ifdef CONFIG_DYNAMIC_FTRACE
174
+ extern void arch_ftrace_nmi_enter (void );
175
+ extern void arch_ftrace_nmi_exit (void );
176
+ #else
177
+ static inline void arch_ftrace_nmi_enter (void ) { }
178
+ static inline void arch_ftrace_nmi_exit (void ) { }
179
+ #endif
180
+
173
181
BUILD_TRAP_HANDLER (nmi )
174
182
{
175
183
unsigned int cpu = smp_processor_id ();
176
184
TRAP_HANDLER_DECL ;
177
185
186
+ arch_ftrace_nmi_enter ();
187
+
178
188
nmi_enter ();
179
189
nmi_count (cpu )++ ;
180
190
@@ -190,4 +200,6 @@ BUILD_TRAP_HANDLER(nmi)
190
200
}
191
201
192
202
nmi_exit ();
203
+
204
+ arch_ftrace_nmi_exit ();
193
205
}
Original file line number Diff line number Diff line change 2
2
#ifndef _LINUX_FTRACE_IRQ_H
3
3
#define _LINUX_FTRACE_IRQ_H
4
4
5
-
6
- #ifdef CONFIG_FTRACE_NMI_ENTER
7
- extern void arch_ftrace_nmi_enter (void );
8
- extern void arch_ftrace_nmi_exit (void );
9
- #else
10
- static inline void arch_ftrace_nmi_enter (void ) { }
11
- static inline void arch_ftrace_nmi_exit (void ) { }
12
- #endif
13
-
14
5
#ifdef CONFIG_HWLAT_TRACER
15
6
extern bool trace_hwlat_callback_enabled ;
16
7
extern void trace_hwlat_callback (bool enter );
@@ -22,12 +13,10 @@ static inline void ftrace_nmi_enter(void)
22
13
if (trace_hwlat_callback_enabled )
23
14
trace_hwlat_callback (true);
24
15
#endif
25
- arch_ftrace_nmi_enter ();
26
16
}
27
17
28
18
static inline void ftrace_nmi_exit (void )
29
19
{
30
- arch_ftrace_nmi_exit ();
31
20
#ifdef CONFIG_HWLAT_TRACER
32
21
if (trace_hwlat_callback_enabled )
33
22
trace_hwlat_callback (false);
Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ config USER_STACKTRACE_SUPPORT
10
10
config NOP_TRACER
11
11
bool
12
12
13
- config HAVE_FTRACE_NMI_ENTER
14
- bool
15
- help
16
- See Documentation/trace/ftrace-design.rst
17
-
18
13
config HAVE_FUNCTION_TRACER
19
14
bool
20
15
help
@@ -72,11 +67,6 @@ config RING_BUFFER
72
67
select TRACE_CLOCK
73
68
select IRQ_WORK
74
69
75
- config FTRACE_NMI_ENTER
76
- bool
77
- depends on HAVE_FTRACE_NMI_ENTER
78
- default y
79
-
80
70
config EVENT_TRACING
81
71
select CONTEXT_SWITCH_TRACER
82
72
select GLOB
You can’t perform that action at this time.
0 commit comments