diff options
author | Sai Aitharaju <saia@codeaurora.org> | 2015-06-19 09:14:00 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:22:03 -0600 |
commit | aed499437ab3e91f8be017f44dcedd4a2d5dc222 (patch) | |
tree | 6914bc0eb90d25c5dd496e705fb7dc94f01c2167 /include | |
parent | 08de637744f925731db794f1010e7fc3638ebd29 (diff) | |
download | android_system_bt-aed499437ab3e91f8be017f44dcedd4a2d5dc222.tar.gz android_system_bt-aed499437ab3e91f8be017f44dcedd4a2d5dc222.tar.bz2 android_system_bt-aed499437ab3e91f8be017f44dcedd4a2d5dc222.zip |
QLogKit: Enable FW Logging and Set Stack Trace Level
- Enables FW Logging during BT On and disables
the FW Logging during BT Off in userdebug
builds only.
- Provides an interface to set trace level for
all the stack layers of bluedroid.
CRs-Fixed: 866285
Change-Id: Ib12d220e0aa4845d04b05b7fbea079d30c308004
Diffstat (limited to 'include')
-rw-r--r-- | include/bt_trace.h | 1 | ||||
-rw-r--r-- | include/logging.h | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/include/bt_trace.h b/include/bt_trace.h index 2d2db0b05..c945285c6 100644 --- a/include/bt_trace.h +++ b/include/bt_trace.h @@ -124,6 +124,7 @@ static const char BTE_LOGMSG_MODULE[] = "bte_logmsg_module"; #define BTTRC_PARAM_UINT8 1 #define BTTRC_PARAM_UINT16 2 #define BTTRC_PARAM_UINT32 3 +extern void BTA_setStackLog( const char* log_layer, int log_level); /* Enables or disables verbose trace information. */ #ifndef BT_TRACE_VERBOSE diff --git a/include/logging.h b/include/logging.h new file mode 100644 index 000000000..bd70b39ba --- /dev/null +++ b/include/logging.h @@ -0,0 +1,45 @@ +/********************************************************************* +* +* Copyright (c) 2015, The Linux Foundation. All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions +* are met: +* +* * Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* * Redistributions in binary form must reproduce the above +* copyright notice, this list of conditions and the following +* disclaimer in the documentation and/or other materials provided +* with the distribution. +* * Neither the name of The Linux Foundation nor the names of its +* contributors may be used to endorse or promote products derived +* from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +* IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +************************************************************************/ + +#include <stdio.h> +#include "bt_types.h" + +__BEGIN_DECLS + +typedef struct { + + size_t size; + void (*setLog)( const char *log_layer, UINT16 log_level); +} btstacklog_interface_t; + +__END_DECLS + |