WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hcc_dfx.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2023. All rights reserved.
3 * Description: hcc dfx completion.
4 */
5
6#ifndef HCC_DFX_HEADER
7#define HCC_DFX_HEADER
8
9#include "td_type.h"
10#include "hcc_comm.h"
11#include "hcc_cfg_comm.h"
12#include "hcc_types.h"
13#include "hcc_cfg_comm.h"
14#include "soc_osal.h"
15
16typedef struct _hcc_service_stat_ {
17 /* 业务申请内存成功、失败的总次数, 业务内存只有RX方向需要hcc申请 */
18 td_u32 alloc_succ_cnt; /* 回调业务alloc返回成功次数 */
19 td_u32 alloc_cb_cnt; /* 回调业务alloc次数 */
20 td_u32 alloc_fail_cnt; /* 申请内存失败的次数: 其中包含参数错误引起未调用回调场景 */
21
22 /* 回调业务free的次数 */
24
25#ifdef CONFIG_HCC_SUPPORT_FLOW_CONTRL
26 /* 回调业务start_subq的次数 */
27 td_u32 start_subq_cnt;
28 /* 回调业务stop_subq的次数 */
29 td_u32 stop_subq_cnt;
30#endif
31 /* 回调业务 rx_proc 统计 */
32 td_u32 rx_cnt; /* 调用次数 */
33 td_u32 exp_rx_cnt; /* 实际应调用次数 */
34
35 td_u32 bus_tx_succ; /* 通道发送成功包数量 */
36
39
40typedef struct _hcc_queue_stat_ {
41 /* 队列申请内存成功、失败次数 */
42 /* 释放次数无法记录,数据可能会不准确,暂不记录 */
45
46 td_u32 total_pkts; // 当前队列处理帧的数量,成功传递给对端 或 成功传递给业务的包数量
47 td_u32 loss_pkts; // 当前队列丢帧数量
49
50typedef struct _hcc_bus_stat_ {
51 td_u32 total_tx_pkts; // 发送成功的数量
52 td_u32 loss_tx_pkts; // 发送丢帧数量
54
64
76
82#endif /* HCC_DFX_HEADER */
enum _hcc_serv_main_type hcc_service_type
enum _hcc_queue_type hcc_queue_type
td_void hcc_dfx_queue_info_print(td_u8 chl, hcc_queue_dir dir, hcc_queue_type q_id)
struct _hcc_queue_stat_ hcc_queue_stat
struct _hcc_bus_stat_ hcc_bus_stat
td_void hcc_dfx_service_info_print(td_u8 chl, hcc_service_type service_type)
td_void hcc_tx_fail_inc(td_void *hcc)
td_void hcc_proc_overnum_inc(td_void *hcc)
struct _hcc_dfx_ hcc_dfx
struct _hcc_service_stat_ hcc_service_stat
struct _hcc_inner_stat_ hcc_inner_stat
td_void hcc_bus_dfx_statics_print(td_u8 chl)
@ HCC_DIR_COUNT
Definition hcc_types.h:15
enum _hcc_queue_dir_ hcc_queue_dir
Definition hcc_dfx.h:50
td_u32 total_tx_pkts
Definition hcc_dfx.h:51
td_u32 loss_tx_pkts
Definition hcc_dfx.h:52
Definition hcc_dfx.h:65
hcc_queue_stat * queue_stat[HCC_DIR_COUNT]
Definition hcc_dfx.h:70
td_u8 que_max_cnt
Definition hcc_dfx.h:72
osal_spinlock hcc_dfx_lock
Definition hcc_dfx.h:66
td_u16 rsv
Definition hcc_dfx.h:74
hcc_inner_stat inner_stat
Definition hcc_dfx.h:71
td_u8 srv_max_cnt
Definition hcc_dfx.h:73
Definition hcc_dfx.h:55
td_u32 unc_alloc_fail[HCC_DIR_COUNT]
Definition hcc_dfx.h:57
td_u32 unc_free_cnt
Definition hcc_dfx.h:58
td_u32 mem_free_cnt
Definition hcc_dfx.h:59
td_u16 tx_fail_exit_cnt
Definition hcc_dfx.h:61
td_u32 unc_alloc_succ[HCC_DIR_COUNT]
Definition hcc_dfx.h:56
td_u32 srv_rx_cnt
Definition hcc_dfx.h:60
td_u16 proc_packet_overnum_cnt
Definition hcc_dfx.h:62
Definition hcc_dfx.h:40
td_u32 loss_pkts
Definition hcc_dfx.h:47
td_u32 alloc_succ_cnt
Definition hcc_dfx.h:43
td_u32 alloc_fail_cnt
Definition hcc_dfx.h:44
td_u32 total_pkts
Definition hcc_dfx.h:46
Definition hcc_dfx.h:16
td_u32 alloc_succ_cnt
Definition hcc_dfx.h:18
td_u32 alloc_cb_cnt
Definition hcc_dfx.h:19
td_u32 free_cnt
Definition hcc_dfx.h:23
td_u32 alloc_fail_cnt
Definition hcc_dfx.h:20
td_u32 rx_cnt
Definition hcc_dfx.h:32
td_u32 bus_tx_succ
Definition hcc_dfx.h:35
td_u32 exp_rx_cnt
Definition hcc_dfx.h:33
td_u32 rx_err_cnt
Definition hcc_dfx.h:37
Definition osal_spinlock.h:18
unsigned short td_u16
Definition td_type.h:37
unsigned char td_u8
Definition td_type.h:36
void td_void
Definition td_type.h:49
unsigned int td_u32
Definition td_type.h:38