diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-05-27 16:38:09 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-05-27 15:28:45 +0000 |
| commit | ebd4cf5abe35b4d122640cf16b811d62de45be82 (patch) | |
| tree | eb8ecbf9db1892af2a41f3ecc2efda264ac996e3 /executor | |
| parent | a717135de7c6fd18fe22065264a8d835ce931a25 (diff) | |
prog: introduce a remote_cover call attribute
Update the descriptions to mark calls that cause remote coverage
collection.
Remote some hacky code from the executor.
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/executor.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/executor/executor.cc b/executor/executor.cc index e4bab17a6..71a376870 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -873,10 +873,8 @@ void execute_one() const call_t* call = &syscalls[call_num]; if (prog_extra_timeout < call->attrs.prog_timeout) prog_extra_timeout = call->attrs.prog_timeout * slowdown_scale; - if (strncmp(syscalls[call_num].name, "syz_usb", strlen("syz_usb")) == 0) - prog_extra_cover_timeout = std::max(prog_extra_cover_timeout, 500 * slowdown_scale); - if (strncmp(syscalls[call_num].name, "syz_80211_inject_frame", strlen("syz_80211_inject_frame")) == 0) - prog_extra_cover_timeout = std::max(prog_extra_cover_timeout, 300 * slowdown_scale); + if (call->attrs.remote_cover) + prog_extra_cover_timeout = 500 * slowdown_scale; // 500 ms uint64 copyout_index = read_input(&input_pos); uint64 num_args = read_input(&input_pos); if (num_args > kMaxArgs) |
