Since trace_clock is in a different file and already marked with notrace,
enable tracing in time.c by removing it from the disabled list in Makefile.
Also annotate clocksource read functions and sched_clock with notrace.
Testing: Timer and ftrace selftests run with different trace clocks.
CC: Naveen N. Rao <redacted>
Signed-off-by: Santosh Sivaraj <redacted>
---
arch/powerpc/kernel/Makefile | 2 --
arch/powerpc/kernel/time.c | 6 +++---
2 files changed, 3 insertions(+), 5 deletions(-)
From: Naveen N . Rao <hidden> Date: 2017-06-20 07:02:11
On 2017/06/20 11:50AM, Santosh Sivaraj wrote:
Since trace_clock is in a different file and already marked with notrace,
enable tracing in time.c by removing it from the disabled list in Makefile.
Also annotate clocksource read functions and sched_clock with notrace.
Testing: Timer and ftrace selftests run with different trace clocks.
CC: Naveen N. Rao <redacted>
Signed-off-by: Santosh Sivaraj <redacted>
Thanks for doing this! Apart from the minor nit below:
Acked-by: Naveen N. Rao <redacted>
For the sake of consistency, it's probably better to add the notrace
annotation before the return values, though I see that the prototype in
include/sched.h has used this order.
- Naveen
Since trace_clock is in a different file and already marked with notrace,
enable tracing in time.c by removing it from the disabled list in Makefile.
Also annotate clocksource read functions and sched_clock with notrace.
Testing: Timer and ftrace selftests run with different trace clocks.
Acked-by: Naveen N. Rao <redacted>
Signed-off-by: Santosh Sivaraj <redacted>
---
arch/powerpc/kernel/Makefile | 2 --
arch/powerpc/kernel/time.c | 6 +++---
2 files changed, 3 insertions(+), 5 deletions(-)
From: Michael Ellerman <hidden> Date: 2017-06-23 09:15:01
On Tue, 2017-06-20 at 07:44:47 UTC, Santosh Sivaraj wrote:
Since trace_clock is in a different file and already marked with notrace,
enable tracing in time.c by removing it from the disabled list in Makefile.
Also annotate clocksource read functions and sched_clock with notrace.
Testing: Timer and ftrace selftests run with different trace clocks.
Acked-by: Naveen N. Rao <redacted>
Signed-off-by: Santosh Sivaraj <redacted>