aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorAnge Albertini <105304039+corkamig@users.noreply.github.com>2022-08-29 19:47:45 +0200
committerGitHub <noreply@github.com>2022-08-29 10:47:45 -0700
commit828e3535440d0a7229af93d6b3b2bfdba510e7b6 (patch)
tree8f9c86ab993348b3bc59f899f8108f3367e706a5 /sys
parentd7593c581bfab7ccaecfff2f9e7f8f3ac9163e06 (diff)
sys/fuchsia: add the debuglog syscalls definitions (#3302)
* sys/fuchsia: add the debuglog syscalls definitions * sys/fuchsia: correct data and length declarations * sys/fuchsia: update the debuglog definitions * sys/fuchsia: remove log.txt
Diffstat (limited to 'sys')
-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