traceTASK_SWITCHED_IN() macro setup for ARM cortex A72/A53

I have a port of FreeRTOS V10.4.3 on ARM A72/A53 based on FreeRTOSv202012.00 LTS.
I’d like to enable the task trace facility in my debug tool and to do this I need to define the traceTASK_SWITCHED_IN() macro.
I did it in the past for 32 bit armv7 cortex A15 but it is not compatible with armv8 cortex A72 for example.
Any help ?

traceTASK_SWITCHED_IN macro is called from the common tasks.c file: FreeRTOS-Kernel/tasks.c at 953c1ee6cbf460092826bab772e4119c6d9e51e8 · FreeRTOS/FreeRTOS-Kernel · GitHub

What do you mean by it is not compatible?