From d5d510f7959d91ed32d22412def97add4fc16fd4 Mon Sep 17 00:00:00 2001 From: Denys Haryachyy Date: Wed, 7 Feb 2024 16:47:20 +0200 Subject: 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 --- src/plugins/tracedump/tracedump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/tracedump') 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; -- cgit 1.2.3-korg