qcacmn: Add histogram framework for DP path
A new framework added to calculate the per packet level histogram Change-Id: Iac52f7a672fa2afe1d6aec26931a8bc3115c6a98
此提交包含在:
40
dp/wifi3.0/dp_hist.h
一般檔案
40
dp/wifi3.0/dp_hist.h
一般檔案
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2020 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
|
||||
* above copyright notice and this permission notice appear in all
|
||||
* copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file dp_hist.h
|
||||
* @brief: histogram header file
|
||||
*/
|
||||
|
||||
#ifndef __DP_HIST_H_
|
||||
#define __DP_HIST_H_
|
||||
|
||||
#define HIST_AVG_WEIGHT_DENOM 4
|
||||
|
||||
/*
|
||||
* dp_hist_update_stats: Update histogram stats
|
||||
* @hist_delay: Delay histogram
|
||||
* @value: Delay value
|
||||
*
|
||||
* Return: void
|
||||
*/
|
||||
void dp_hist_update_stats(struct cdp_hist_stats *hist_stats, int value);
|
||||
void dp_hist_init(struct cdp_hist_stats *hist_stats,
|
||||
enum cdp_hist_types hist_type);
|
||||
|
||||
#endif /* __DP_HIST_H_ */
|
新增問題並參考
封鎖使用者