diff options
| author | 童宗振 <[email protected]> | 2024-03-13 10:46:27 +0000 |
|---|---|---|
| committer | 童宗振 <[email protected]> | 2024-03-13 10:46:27 +0000 |
| commit | 468c21fa9ca6c37b66839635dbf8cac8479c0c6c (patch) | |
| tree | 7615fd431a39a0b54cea96fdc3b46103aca73ca7 /examples | |
| parent | dde974556876ed3e6e10b8051dff9dbead329f69 (diff) | |
Dp trace perf opti
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/l2fwd-nf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/l2fwd-nf.c b/examples/l2fwd-nf.c index 251f2c3..903a0b7 100644 --- a/examples/l2fwd-nf.c +++ b/examples/l2fwd-nf.c @@ -101,8 +101,11 @@ void * l2fwd_loop(void * arg) marsio_buff_set_sid_list(deep_copy_buff, sids, nr_sids); marsio_dp_trace_filter_exec(mr_instance, deep_copy_buff); - marsio_dp_trace_record_emit_str(mr_instance, deep_copy_buff, "I2fwd-nf", - "test for sending message directly"); + if (marsio_dp_trace_record_can_emit(deep_copy_buff)) + { + marsio_dp_trace_record_emit_str(mr_instance, deep_copy_buff, "I2fwd-nf", + "test for sending message directly"); + } tx_buff[i] = deep_copy_buff; } |
