qcacmn: Add support to send connectivity logs from logging thread

Add support to send connectivity logs from g_wlan_logging thread.
Add new HOST_LOG_DRIVER_CONNECTIVITY_MSG event flag which wakes up
the gwlan_logging thread when set.
Also register connection manager callbacks to send the logging event.

Check if logging queue is empty whenever the gwlan_logging thread
is woken up and send the logs to userspace if the count doesn't
exceed the allowed threshold.

Change-Id: I3fdb8358f9048a277e2f03894c0e6a17376b0da0
CRs-Fixed: 3029279
这个提交包含在:
Pragaspathi Thilagaraj
2021-08-26 21:44:51 +05:30
提交者 Madan Koyyalamudi
父节点 114c654e69
当前提交 b001e0e130
修改 4 个文件,包含 55 行新增3 行删除

查看文件

@@ -77,6 +77,14 @@ int wlan_logging_notifier_deinit(bool dump_at_kernel_enable);
QDF_STATUS wlan_logging_wait_for_flush_log_completion(void);
void wlan_logging_set_per_pkt_stats(void);
/**
* wlan_logging_set_connectivity_log() - INterrupt the gwlan_logging thread
* to send the connectivity logs
*
* Return: None
*/
void wlan_logging_set_connectivity_log(void);
void wlan_logging_set_fw_flush_complete(void);
void wlan_flush_host_logs_for_fatal(void);
void wlan_logging_set_active(bool active);