qcacmn: Add DP event history in non debug mode

Enable DP event history for perf mode.

Change-Id: I1b8863928f956aa39488ea357d56e182613aad8d
CRs-Fixed: 2846844
This commit is contained in:
Ananya Gupta
2021-01-07 17:21:10 +05:30
committed by snandini
父節點 ae7d88fa80
當前提交 a3152f3104
共有 5 個文件被更改,包括 54 次插入9 次删除

查看文件

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -27,6 +27,11 @@
#include <linux/version.h>
#include <linux/jiffies.h>
#include <linux/delay.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
#include <linux/sched/clock.h>
#else
#include <linux/sched.h>
#endif
#include <linux/ktime.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0))
#include <linux/timekeeping.h>
@@ -250,6 +255,16 @@ static inline bool __qdf_system_time_after_eq(__qdf_time_t a, __qdf_time_t b)
return (long)(a) - (long)(b) >= 0;
}
/**
* qdf_sched_clock() - use light weight timer to get timestamp
*
* Return: timestamp in ns
*/
static inline uint64_t __qdf_sched_clock(void)
{
return sched_clock();
}
/**
* __qdf_get_monotonic_boottime() - get monotonic kernel boot time
* This API is similar to qdf_get_system_boottime but it includes