soc: qcom: ipc_logging: Add enable/disable feature for IPC log
This feature allow enabling/disabling IPC logs through debugfs
on per client basis. Also, it provides feature for enabling/disabling
IPC logs for all the clients.
CRs-Fixed: 2212818
Change-Id: Iab8e25f329afe92d5ee55ddd3631941f95683f55
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
diff --git a/include/linux/ipc_logging.h b/include/linux/ipc_logging.h
index 780a82d..5bc8b6a 100644
--- a/include/linux/ipc_logging.h
+++ b/include/linux/ipc_logging.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2015, 2018 The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -124,6 +124,13 @@ void ipc_log_write(void *ctxt, struct encode_context *ectxt);
*/
int ipc_log_string(void *ilctxt, const char *fmt, ...) __printf(2, 3);
+/*
+ * ipc_log_ctrl_all - disable/enable logging in all clients
+ *
+ * @ Data specified using format specifiers
+ */
+void ipc_log_ctrl_all(bool disable);
+
/**
* ipc_log_extract - Reads and deserializes log
*