diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-05-08 12:24:46 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-05-08 12:26:59 +0000 |
| commit | 4dbd403fd0978b91ffe3bb2f2a749511591644dd (patch) | |
| tree | a43a92648849d5127c4165b744e05e38c90bf9ee /docs/pseudo_syscalls.md | |
| parent | dc488c459880e3f3af557dc336697138ecb8228b (diff) | |
pkg/csource: replace go:generate with go:embed
go:embed is a more modern way to do this and it does
not require a special Makefile step.
Since go:embed cannot use paths that contains "..",
the actual embeding is moved to executor package.
Diffstat (limited to 'docs/pseudo_syscalls.md')
| -rw-r--r-- | docs/pseudo_syscalls.md | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/docs/pseudo_syscalls.md b/docs/pseudo_syscalls.md index c5df49ef1..cb899e6fc 100644 --- a/docs/pseudo_syscalls.md +++ b/docs/pseudo_syscalls.md @@ -23,25 +23,9 @@ amount of code, possibility of extending syzlang to cover this case, etc). First, think about the scope of the pseudo-syscall and which systems and subsystems it will be related to. The executor includes a fixed set of C -header files containing the code of the pseudo-syscalls. Check if the -new one can fit in one of the existing files before creating a new -one. These header files are defined in [gen.go](../pkg/csource/gen.go): - - executorFilenames := []string{ - "common_linux.h", - "common_bsd.h", - "common_fuchsia.h", - "common_windows.h", - "common_test.h", - "common_kvm_amd64.h", - "common_kvm_arm64.h", - "common_usb_linux.h", - "common_usb_netbsd.h", - "common_usb.h", - "android/android_seccomp.h", - "kvm.h", - "kvm_amd64.S.h", - } +header files `executor/common*.h` containing the code of the pseudo-syscalls. +Check if the new one can fit in one of the existing files before creating +a new one. For instance, if our new pseudo-syscall is Linux-specific, then [common_linux.h](../executor/common_linux.h) would be the place to put it. |
