|
This commit implements proper file and line logging as a proof of concept for mutex locks. The previous versions only logged the location inside the mutex_enter function, which was useless.
To get correct filenames, calls to mutex_enter (which usually go directly to ASM) are replaced through the macro defined in lockdoc.h. This logs the according information and passes on the function call to the old ASM code.
Furthermore, some other things like apm.c or patch.c had to be modified, to keep the code compilable, even with this new replacement macro.
Also, the old logging methods in lockdebug.h have been removed, since we can not get the proper file and line by going through there.
This commit only implements these changes for mutex_enter, mutex_spin_enter, mutex_exit and mutex_spin_exit, and serves as a template for changes in the other lock functions and types.
|