--- zzzz-none-000/linux-4.9.279/kernel/time/timer.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/kernel/time/timer.c 2023-02-08 11:43:43.000000000 +0000 @@ -54,6 +54,9 @@ #define CREATE_TRACE_POINTS #include +#if defined(CONFIG_AVM_SIMPLE_PROFILING) +#include +#endif __visible u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES; @@ -1317,7 +1320,13 @@ lock_map_acquire(&lockdep_map); trace_timer_expire_entry(timer); +#if defined(CONFIG_AVM_SIMPLE_PROFILING) + avm_simple_profiling_log(avm_profile_data_type_timer_begin, (unsigned int)fn, (unsigned int)data); +#endif fn(data); +#if defined(CONFIG_AVM_SIMPLE_PROFILING) + avm_simple_profiling_log(avm_profile_data_type_timer_end, (unsigned int)fn, (unsigned int)data); +#endif trace_timer_expire_exit(timer); lock_map_release(&lockdep_map);