qcacmn: Add excessive logging detection

One of the most common stability issues encountered by the stability
team is watchdog bite due to excessive logging. Add a feature to track
logging to dmesg using a tumbling window and counter, and panic if the
configured maximum number of logs for that window is exceeded.

Change-Id: If83c6dfccb9d191b02a3a7166b065c0a0704f969
CRs-Fixed: 2338385
This commit is contained in:
Dustin Brown
2018-10-22 13:52:28 -07:00
committed by nshrivas
parent 0050ec95b3
commit aaa97751a6
3 changed files with 44 additions and 0 deletions

View File

@@ -115,6 +115,8 @@ static inline qdf_time_t qdf_system_ticks(void)
return __qdf_system_ticks();
}
#define qdf_system_ticks_per_sec __qdf_system_ticks_per_sec
/**
* qdf_system_ticks_to_msecs - convert ticks to milliseconds
* @clock_ticks: Number of ticks