From: Denys Haryachyy Date: Wed, 7 Feb 2024 14:47:20 +0000 (+0200) Subject: vppapitrace: Fixed trace dump API result issue. X-Git-Tag: v24.10-rc0~244 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=d5d510f7959d91ed32d22412def97add4fc16fd4;p=vpp.git vppapitrace: Fixed trace dump API result issue. Set last thread id and last packet position in TRACE_DUMP_REPLY. To enable collection of traces from multiple workers using iterator. Type: fix Change-Id: I69872af4f6981d50cd050fa3d16de2a3c0d6b496 Signed-off-by: Denys Haryachyy --- diff --git a/src/plugins/tracedump/tracedump.c b/src/plugins/tracedump/tracedump.c index 6510a948c57..08d338b1de0 100644 --- a/src/plugins/tracedump/tracedump.c +++ b/src/plugins/tracedump/tracedump.c @@ -288,9 +288,9 @@ vl_api_trace_dump_t_handler (vl_api_trace_dump_t * mp) { /* More threads, but not more in this thread? */ if (j == (vec_len (client_trace_cache[i]) - 1)) - dmp->more_threads = 1; + last_more_threads = dmp->more_threads = 1; else - dmp->more_this_thread = 1; + last_more_this_thread = dmp->more_this_thread = 1; } /* Done, may or may not be at the end of a batch. */ dmp->done = 0;