mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
s390/s390dbf: add debug_level_enabled() function
Add the debug_level_enabled() function to check if debug events for a particular level would be logged. This might help to save cycles for debug events that require additional information collection. Signed-off-by: Hendrik Brueckner <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
This commit is contained in:
parent
4ae803253e
commit
f1d86b61fb
2 changed files with 15 additions and 0 deletions
|
|
@ -157,6 +157,16 @@ Return Value: none
|
|||
|
||||
Description: Sets new actual debug level if new_level is valid.
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
bool debug_level_enabled (debug_info_t * id, int level);
|
||||
|
||||
Parameter: id: handle for debug log
|
||||
level: debug level
|
||||
|
||||
Return Value: True if level is less or equal to the current debug level.
|
||||
|
||||
Description: Returns true if debug events for the specified level would be
|
||||
logged. Otherwise returns false.
|
||||
---------------------------------------------------------------------------
|
||||
void debug_stop_all(void);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue