--- zzzz-none-000/linux-4.9.279/kernel/trace/trace_clock.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/kernel/trace/trace_clock.c 2023-02-08 10:58:16.000000000 +0000 @@ -12,6 +12,12 @@ * * Tracer plugins will chose a default from these clocks. */ + +/* +Includes Intel Corporation's changes/modifications dated: 2017. +Changed/modified portions - Copyright © 2017, Intel Corporation. +*/ + #include #include #include @@ -21,6 +27,30 @@ #include #include +extern unsigned long long notrace avalanche_clock_p(void); +u64 notrace trace_clock_p(void) +{ + u64 clock; + + preempt_disable_notrace(); + clock = avalanche_clock_p(); + preempt_enable_notrace(); + + return clock; +} + +extern unsigned long long notrace avalanche_clock_vp(void); +u64 notrace trace_clock_vp(void) +{ + u64 clock; + + preempt_disable_notrace(); + clock = avalanche_clock_vp(); + preempt_enable_notrace(); + + return clock; +} + /* * trace_clock_local(): the simplest and least coherent tracing clock. *