Naveen N. Rao ea678ac627 powerpc64/ftrace: Add a field in paca to disable ftrace in unsafe code paths
We have some C code that we call into from real mode where we cannot
take any exceptions. Though the C functions themselves are mostly safe,
if these functions are traced, there is a possibility that we may take
an exception. For instance, in certain conditions, the ftrace code uses
WARN(), which uses a 'trap' to do its job.

For such scenarios, introduce a new field in paca 'ftrace_enabled',
which is checked on ftrace entry before continuing. This field can then
be set to zero to disable/pause ftrace, and set to a non-zero value to
resume ftrace.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-05-03 22:32:25 +10:00
..
2018-04-01 00:47:50 +11:00
2018-01-15 09:35:26 +01:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2018-04-07 12:08:19 -07:00
2018-02-02 10:01:04 -08:00
2016-08-07 23:50:09 -04:00
2018-02-02 10:01:04 -08:00
2018-03-31 09:09:36 +11:00
2017-12-11 13:03:35 +11:00
2018-02-06 09:59:40 -08:00
2018-03-31 09:09:36 +11:00
2018-03-30 23:34:26 +11:00
2018-03-31 09:09:36 +11:00
2017-11-16 12:47:46 -08:00
2015-04-07 17:15:13 +10:00
2018-02-02 10:01:04 -08:00