blob: 4a27cc183c8fa365a70b621647c910b7dc204727 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "tools/kazoo/output_util.h"
#include "tools/kazoo/outputs.h"
bool KtraceOutput(const SyscallLibrary& library, Writer* writer) {
CopyrightHeaderWithCppComments(writer);
size_t i = 0;
for (const auto& syscall : library.syscalls()) {
if (syscall->HasAttribute("vdsocall")) {
continue;
}
writer->Printf("{%zu, %zu, \"%s\"},\n", i, syscall->num_kernel_args(), syscall->name().c_str());
++i;
}
return true;
}