summaryrefslogtreecommitdiff
path: root/service/src/node_etherfabric.c
diff options
context:
space:
mode:
authorsongyanchao <[email protected]>2024-03-15 11:53:30 +0800
committersongyanchao <[email protected]>2024-03-15 11:57:27 +0800
commitc15e2714c9d66849bfdea58e280d2e69e464892a (patch)
tree332cf74734e2f1e8c52c497c581428e257db3ac7 /service/src/node_etherfabric.c
parent70db25f621a9a9964278884d31b3d6999fbaf4a3 (diff)
🎈 perf(TSG-19602): Simplify trace logging for nodes.v4.6.80-20240315rel-4.6
Simplify trace logging for nodes.
Diffstat (limited to 'service/src/node_etherfabric.c')
-rw-r--r--service/src/node_etherfabric.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/service/src/node_etherfabric.c b/service/src/node_etherfabric.c
index 7a3f002..76e7043 100644
--- a/service/src/node_etherfabric.c
+++ b/service/src/node_etherfabric.c
@@ -451,7 +451,7 @@ static __rte_always_inline void gen_store_trace_info_ingress(struct rte_node * n
struct ef_ingress_stats * stats_for_trace,
uint16_t prepend_sid)
{
- struct dp_trace_record_meta meta = {.module = node->name};
+ struct dp_trace_record_meta meta = {.appsym = MR_TRACE_APPSYM, .module = node->name};
/* Populate the next node infomation */
char str_record[MR_STRING_MAX];
@@ -486,7 +486,10 @@ static __rte_always_inline void gen_store_trace_info_ingress(struct rte_node * n
len += snprintf(str_record + len, sizeof(str_record) - len, ", trf lk id:%u", mrb_meta->traffic_link_id);
/* Populate the prepend sid */
- len += snprintf(str_record + len, sizeof(str_record) - len, ", prepend sid:%u", prepend_sid);
+ len += snprintf(str_record + len, sizeof(str_record) - len, ", prep sid:%u", prepend_sid);
+
+ /* Populate the sids information */
+ len += embed_sid_info(mbuf, str_record + len, sizeof(str_record) - len);
}
/* Emit the trace record */
@@ -588,8 +591,8 @@ static __rte_always_inline uint16_t ef_ingress_node_process(struct rte_graph * g
if (unlikely(dp_trace_record_can_emit(mbuf)))
{
gen_store_trace_info_ingress(node, mbuf, next_node_index, &stats, &stats_for_trace, prepend_sid);
- gen_store_trace_info_sid_list(node, mbuf);
- // gen_store_trace_info_rte_mbuf(node, mbuf);
+ // gen_store_trace_info_sid_list(node, mbuf);
+ // gen_store_trace_info_rte_mbuf(node, mbuf);
}
/* Judge the next index whether to change */
@@ -706,7 +709,7 @@ static __rte_always_inline void gen_store_trace_info_egress(struct rte_node * no
uint16_t next_node_index, struct ef_egress_stats * stats,
struct ef_egress_stats * stats_for_trace)
{
- struct dp_trace_record_meta meta = {.module = node->name};
+ struct dp_trace_record_meta meta = {.appsym = MR_TRACE_APPSYM, .module = node->name};
/* Populate the next node infomation */
char str_record[MR_STRING_MAX];