From 402cd70d5792ac0fd0d4eb2ec81963ce378bf5a5 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Thu, 11 Aug 2022 14:36:25 -0700 Subject: 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 --- sys/fuchsia/mtrace.txt | 8 ++++++++ sys/fuchsia/resource.txt | 12 ++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 sys/fuchsia/mtrace.txt create mode 100644 sys/fuchsia/resource.txt (limited to 'sys') 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 + +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 + +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 -- cgit mrf-deployment