1 // Copyright 2018 The Fuchsia Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include <perftest/perftest.h> 6 #include <zircon/assert.h> 7 #include <zircon/syscalls.h> 8 9 namespace { 10 SyscallNullTest()11bool SyscallNullTest() { 12 ZX_ASSERT(zx_syscall_test_0() == 0); 13 return true; 14 } 15 SyscallManyArgsTest()16bool SyscallManyArgsTest() { 17 ZX_ASSERT(zx_syscall_test_8(1, 2, 3, 4, 5, 6, 7, 8) == 36); 18 return true; 19 } 20 RegisterTests()21void RegisterTests() { 22 perftest::RegisterSimpleTest<SyscallNullTest>("Syscall/Null"); 23 perftest::RegisterSimpleTest<SyscallManyArgsTest>("Syscall/ManyArgs"); 24 } 25 PERFTEST_CTOR(RegisterTests); 26 27 } // namespace 28