ANDROID: tracing: Add generic flag for register tracing disable
Instead of using __KVM_NVHE_HYPERVISOR__ flag from NVHE, add generic flag(__DISABLE_TRACE_MMIO__) for disabling register read/write tracing. This helps to disable the tracing for a specific driver to avoid flooding of register read/write operation logging. For example - CFLAGS_msm_geni_serial.o := -D__DISABLE_TRACE_MMIO__ Bug: 190629271 Change-Id: Ic8e84eb84a485058d6a37cc2b495f5584c7d2b43 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
This commit is contained in:

committed by
Will Deacon

parent
c9b8fa644f
commit
4373261be0
@@ -4,7 +4,7 @@
|
||||
#
|
||||
|
||||
asflags-y := -D__KVM_NVHE_HYPERVISOR__ -D__DISABLE_EXPORTS
|
||||
ccflags-y := -D__KVM_NVHE_HYPERVISOR__ -D__DISABLE_EXPORTS
|
||||
ccflags-y := -D__KVM_NVHE_HYPERVISOR__ -D__DISABLE_EXPORTS -D__DISABLE_TRACE_MMIO__
|
||||
|
||||
hostprogs := gen-hyprel
|
||||
HOST_EXTRACFLAGS += -I$(objtree)/include
|
||||
|
@@ -13,9 +13,9 @@
|
||||
* TODO - io.h is included in NVHE files and these tracepoints are getting
|
||||
* enabled for NVHE too. To avoid these tracepoints enabling in NHVE below
|
||||
* condition is introduced.
|
||||
* !(defined(__KVM_NVHE_HYPERVISOR__))
|
||||
* !(defined(__DISABLE_TRACE_MMIO__))
|
||||
*/
|
||||
#if IS_ENABLED(CONFIG_TRACE_MMIO_ACCESS) && !(defined(__KVM_NVHE_HYPERVISOR__))
|
||||
#if IS_ENABLED(CONFIG_TRACE_MMIO_ACCESS) && !(defined(__DISABLE_TRACE_MMIO__))
|
||||
DECLARE_TRACEPOINT(rwmmio_write);
|
||||
DECLARE_TRACEPOINT(rwmmio_read);
|
||||
DECLARE_TRACEPOINT(rwmmio_post_read);
|
||||
|
Reference in New Issue
Block a user