MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cpt_sts_print

Function cpt_sts_print

dpdk/drivers/common/cnxk/roc_cpt_debug.c:103–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103static int
104cpt_sts_print(struct roc_cpt *roc_cpt)
105{
106 struct cpt *cpt = roc_cpt_to_cpt_priv(roc_cpt);
107 struct dev *dev = &cpt->dev;
108 struct cpt_sts_req *req;
109 struct cpt_sts_rsp *rsp;
110 struct mbox *mbox = mbox_get(dev->mbox);
111 int ret;
112
113 req = mbox_alloc_msg_cpt_sts_get(mbox);
114 if (req == NULL) {
115 ret = -EIO;
116 goto exit;
117 }
118
119 req->blkaddr = 0;
120 ret = mbox_process_msg(dev->mbox, (void *)&rsp);
121 if (ret) {
122 ret = -EIO;
123 goto exit;
124 }
125
126 plt_print(" %s:\t0x%016" PRIx64, "inst_req_pc", rsp->inst_req_pc);
127 plt_print(" %s:\t0x%016" PRIx64, "inst_lat_pc", rsp->inst_lat_pc);
128 plt_print(" %s:\t\t0x%016" PRIx64, "rd_req_pc", rsp->rd_req_pc);
129 plt_print(" %s:\t\t0x%016" PRIx64, "rd_lat_pc", rsp->rd_lat_pc);
130 plt_print(" %s:\t\t0x%016" PRIx64, "rd_uc_pc", rsp->rd_uc_pc);
131 plt_print(" %s:\t0x%016" PRIx64, "active_cycles_pc",
132 rsp->active_cycles_pc);
133 plt_print(" %s:\t\t0x%016" PRIx64, "ctx_mis_pc", rsp->ctx_mis_pc);
134 plt_print(" %s:\t\t0x%016" PRIx64, "ctx_hit_pc", rsp->ctx_hit_pc);
135 plt_print(" %s:\t\t0x%016" PRIx64, "ctx_aop_pc", rsp->ctx_aop_pc);
136 plt_print(" %s:\t0x%016" PRIx64, "ctx_aop_lat_pc",
137 rsp->ctx_aop_lat_pc);
138 plt_print(" %s:\t0x%016" PRIx64, "ctx_ifetch_pc",
139 rsp->ctx_ifetch_pc);
140 plt_print(" %s:\t0x%016" PRIx64, "ctx_ifetch_lat_pc",
141 rsp->ctx_ifetch_lat_pc);
142 plt_print(" %s:\t0x%016" PRIx64, "ctx_ffetch_pc",
143 rsp->ctx_ffetch_pc);
144 plt_print(" %s:\t0x%016" PRIx64, "ctx_ffetch_lat_pc",
145 rsp->ctx_ffetch_lat_pc);
146 plt_print(" %s:\t0x%016" PRIx64, "ctx_wback_pc", rsp->ctx_wback_pc);
147 plt_print(" %s:\t0x%016" PRIx64, "ctx_wback_lat_pc",
148 rsp->ctx_wback_lat_pc);
149 plt_print(" %s:\t\t0x%016" PRIx64, "ctx_psh_pc", rsp->ctx_psh_pc);
150 plt_print(" %s:\t0x%016" PRIx64, "ctx_psh_lat_pc",
151 rsp->ctx_psh_lat_pc);
152 plt_print(" %s:\t\t0x%016" PRIx64, "ctx_err", rsp->ctx_err);
153 plt_print(" %s:\t\t0x%016" PRIx64, "ctx_enc_id", rsp->ctx_enc_id);
154 plt_print(" %s:\t0x%016" PRIx64, "ctx_flush_timer",
155 rsp->ctx_flush_timer);
156 plt_print(" %s:\t\t0x%016" PRIx64, "rxc_time", rsp->rxc_time);
157 plt_print(" %s:\t0x%016" PRIx64, "rxc_time_cfg", rsp->rxc_time_cfg);
158 plt_print(" %s:\t0x%016" PRIx64, "rxc_active_sts",
159 rsp->rxc_active_sts);
160 plt_print(" %s:\t0x%016" PRIx64, "rxc_zombie_sts",

Callers 1

roc_cpt_afs_printFunction · 0.85

Calls 4

roc_cpt_to_cpt_privFunction · 0.85
mbox_getFunction · 0.85
mbox_process_msgFunction · 0.85
mbox_putFunction · 0.85

Tested by

no test coverage detected