From 828e3535440d0a7229af93d6b3b2bfdba510e7b6 Mon Sep 17 00:00:00 2001 From: Ange Albertini <105304039+corkamig@users.noreply.github.com> Date: Mon, 29 Aug 2022 19:47:45 +0200 Subject: 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 --- sys/fuchsia/debuglog.txt | 16 ++++++++++++++++ sys/fuchsia/log.txt | 14 -------------- 2 files changed, 16 insertions(+), 14 deletions(-) create mode 100644 sys/fuchsia/debuglog.txt delete mode 100644 sys/fuchsia/log.txt (limited to 'sys/fuchsia') 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 + +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 -include - -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 -- cgit mrf-deployment