aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-04-16 08:18:47 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-04-16 14:20:36 +0000
commit0e05124fa8b99e403da71f699481bf4096fa6997 (patch)
treea809ff7ad8be208dc5d4a2ce03103af644a9708d /executor/executor.cc
parentf8f619e676a9c568c10ac690b37f8b414cd0d52b (diff)
prog: include number of calls into exec encoding
Prepend total number of calls to the exec encoding. This will allow pkg/ipc to better parse executor response without full parsing of the encoded program.
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 4c24520e7..c5bd43f7b 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -759,6 +759,7 @@ void execute_one()
call_props_t call_props;
memset(&call_props, 0, sizeof(call_props));
+ read_input(&input_pos); // total number of calls
for (;;) {
uint64 call_num = read_input(&input_pos);
if (call_num == instr_eof)