--- zzzz-none-000/linux-5.4.213/kernel/workqueue.c 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/kernel/workqueue.c 2024-05-29 11:20:02.000000000 +0000 @@ -51,6 +51,7 @@ #include #include #include +#include #include "workqueue_internal.h" @@ -2278,7 +2279,9 @@ */ lockdep_invariant_state(true); trace_workqueue_execute_start(work); + avm_simple_profiling_log(avm_profile_data_type_workitem_begin, (unsigned long)worker->current_func, 0); worker->current_func(work); + avm_simple_profiling_log(avm_profile_data_type_workitem_end, (unsigned long)worker->current_func, 0); /* * While we must be careful to not use "work" after this, the trace * point will only record its address.