Pan ruochen <panruochen@xxxxxxxxx> writes: > I want to inform gcc to insert > __cyg_profile_func_enter/__cyg_profile_func_exit callbacks just for > the functions within > the file `runtime.c'. As you can see, main.c and generic_ops.c are > both in the exclude list. gcc still generates > __cyg_profile_func_enter/__cyg_profile_func_exit for them. And > /home/prc/linux-2.6/include/linux/pm_runtime.h shall > match linux/, but __cyg_profile_func_enter/__cyg_profile_func_exit are > still created. It does look odd. It may be a bug. It is also possible that the function calls are coming from inlined functions and the linker is misreporting the location of the reference. See if you can come up with a standalone test case. Ian