diff options
| author | Chris Palmer <snackypants@gmail.com> | 2022-08-11 14:36:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-11 14:36:25 -0700 |
| commit | 402cd70d5792ac0fd0d4eb2ec81963ce378bf5a5 (patch) | |
| tree | cf1ac2ca8fa4f370c527efa23c56c299b764db65 /sys | |
| parent | 21724cb2543a5ebc632f065d59d8a4d93c708210 (diff) | |
sys/fuchsia: add the mtrace system call (#3297)
Also add a minimal resource.txt so that `zx_resource` works. The rest of
resource.fidl/.txt will be added in a pending PR.
Co-authored-by: Chris Palmer <palmer@google.com>
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/fuchsia/mtrace.txt | 8 | ||||
| -rw-r--r-- | sys/fuchsia/resource.txt | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/sys/fuchsia/mtrace.txt b/sys/fuchsia/mtrace.txt new file mode 100644 index 000000000..01b856adc --- /dev/null +++ b/sys/fuchsia/mtrace.txt @@ -0,0 +1,8 @@ +# Copyright 2022 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. + +# See https://cs.opensource.google/fuchsia/fuchsia/+/main:zircon/vdso/mtrace.fidl + +include <zircon/syscalls.h> + +zx_mtrace_control(handle zx_resource, kind int32, action int32, options int32, ptr ptr[in, array[int8]], ptr_size len[ptr]) diff --git a/sys/fuchsia/resource.txt b/sys/fuchsia/resource.txt new file mode 100644 index 000000000..c59e69d6b --- /dev/null +++ b/sys/fuchsia/resource.txt @@ -0,0 +1,12 @@ +# Copyright 2022 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. + +# See https://cs.opensource.google/fuchsia/fuchsia/+/main:zircon/vdso/resource.fidl + +include <zircon/syscalls.h> + +resource zx_resource[zx_handle] + +zx_resource_create(parent_rsrc zx_handle, options int32, base int64, size int64, name ptr[in, int8], name_size len[name], resource_out ptr[out, zx_resource]) + +# TODO: The rest of the resource.fidl calls |
