summaryrefslogtreecommitdiff
path: root/sys/modules/examples/luahello/luahello.lua
diff options
context:
space:
mode:
authorMerlin Scholz <merlin@scholz.ruhr>2023-03-16 03:03:49 +0100
committerMerlin Scholz <merlin@scholz.ruhr>2023-03-16 03:03:49 +0100
commitbf1ce4ce265b9f38a71f0bca82d8f0e8c055233a (patch)
tree35484e5bd2cfb7f8f1dc93d5b310e1870459fc50 /sys/modules/examples/luahello/luahello.lua
parent1096504a73ba2e1c619ee0a8c8a5f091d17a71db (diff)
Implement file and line logging for mutex locks
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.
Diffstat (limited to 'sys/modules/examples/luahello/luahello.lua')
0 files changed, 0 insertions, 0 deletions