syzkaller/executor/nocover.h
Andrew Turner bfb4a51e30 executor: Protect the coverage buffer
Add functions to protect and unprotect the coverage buffer. The buffer is
protected from being written to while tracing. When the trace data is
sorted we need to make it read/write, but can return it to read only after
this has completed.

Leave the first page as read/write as we need to clear the length field.
2019-06-04 16:24:36 +02:00

39 lines
617 B
C

// Copyright 2018 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
static void cover_open(cover_t* cov, bool extra)
{
}
static void cover_enable(cover_t* cov, bool collect_comps, bool extra)
{
}
static void cover_reset(cover_t* cov)
{
}
static void cover_collect(cover_t* cov)
{
}
static void cover_protect(cover_t* cov)
{
}
#if SYZ_EXECUTOR_USES_SHMEM
static void cover_unprotect(cover_t* cov)
{
}
static bool cover_check(uint32 pc)
{
return true;
}
static bool cover_check(uint64 pc)
{
return true;
}
#endif