aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenys Haryachyy <garyachy@gmail.com>2024-02-07 16:47:20 +0200
committerDave Barach <vpp@barachs.net>2024-02-16 15:29:07 +0000
commitd5d510f7959d91ed32d22412def97add4fc16fd4 (patch)
treeb86df7ab07b06ccd405dd9a19199610adce03805 /src
parentfbf5f2b0300c654be5d1962bc207c87f49930faf (diff)
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 <garyachy@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/tracedump/tracedump.c4
1 files changed, 2 insertions, 2 deletions
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;