github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/executor/common_ext.h (about)

     1  // Copyright 2022 syzkaller project authors. All rights reserved.
     2  // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  // This file is included into executor and C reproducers and can be used to add
     5  // non-mainline pseudo-syscalls and to provide some other extension points
     6  // w/o changing any other files. See common_ext_example.h for an example implementation.
     7  
     8  // Pseudo-syscalls defined in this file should start with syz_ext_.
     9  
    10  // This file can also define SYZ_HAVE_SETUP_EXT to 1 and provide
    11  // void setup_ext() function that will be called during VM setup.
    12  
    13  // This file can also define SYZ_HAVE_SETUP_EXT_TEST to 1 and provide
    14  // void setup_ext_test() function that will be called during setup of each test process.