aboutsummaryrefslogtreecommitdiffstats
path: root/sys/fuchsia
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fuchsia')
-rw-r--r--sys/fuchsia/debuglog.txt16
-rw-r--r--sys/fuchsia/log.txt14
2 files changed, 16 insertions, 14 deletions
diff --git a/sys/fuchsia/debuglog.txt b/sys/fuchsia/debuglog.txt
new file mode 100644
index 000000000..71b843051
--- /dev/null
+++ b/sys/fuchsia/debuglog.txt
@@ -0,0 +1,16 @@
+# 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/debuglog.fidl
+
+include <zircon/syscalls.h>
+
+resource zx_log[zx_handle]
+
+zx_debuglog_create(resource_ zx_resource, options flags[debuglog_create_options], out ptr[out, zx_log])
+zx_debuglog_write(handle zx_log, options flags[debuglog_write_options], buffer ptr[in, array[int8]], buffer_size len[buffer])
+zx_debuglog_read(handle zx_log, options flags[debuglog_read_options], buffer ptr[out, array[int8]], buffer_size len[buffer])
+
+debuglog_create_options = ZX_LOG_FLAG_READABLE
+debuglog_write_options = 0
+debuglog_read_options = 0
diff --git a/sys/fuchsia/log.txt b/sys/fuchsia/log.txt
deleted file mode 100644
index 008128844..000000000
--- a/sys/fuchsia/log.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-# Copyright 2017 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.
-
-include <zircon/syscalls.h>
-include <zircon/syscalls/log.h>
-
-resource zx_debug_log[zx_handle]
-
-# Undocumented syscall
-zx_debuglog_create(root_resource zx_root_resource, options flags[log_create_options], out ptr[out, zx_debug_log])
-zx_debuglog_read(handle zx_debug_log, options int32, ptr ptr[out, array[int8]], size len[ptr]) (ignore_return)
-zx_debuglog_write(handle zx_debug_log, options int32, ptr ptr[in, array[int8]], size len[ptr])
-
-log_create_options = ZX_LOG_FLAG_READABLE