From 35efba2fe66465ec7c5380ce8d6bedc00728fbc1 Mon Sep 17 00:00:00 2001 From: Anthony Cui Date: Tue, 23 Jul 2024 14:46:54 -0700 Subject: [PATCH] Create files for planned Nvidia driver differ tool. PiperOrigin-RevId: 655310943 --- tools/nvidia_driver_differ/BUILD | 19 +++++++++++++++++++ .../nvidia_driver_differ/driver_ast_parser.cc | 16 ++++++++++++++++ .../nvidia_driver_differ/driver_ast_parser.h | 17 +++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 tools/nvidia_driver_differ/BUILD create mode 100644 tools/nvidia_driver_differ/driver_ast_parser.cc create mode 100644 tools/nvidia_driver_differ/driver_ast_parser.h diff --git a/tools/nvidia_driver_differ/BUILD b/tools/nvidia_driver_differ/BUILD new file mode 100644 index 000000000..5f1c04297 --- /dev/null +++ b/tools/nvidia_driver_differ/BUILD @@ -0,0 +1,19 @@ +load("//tools:defs.bzl", "build_test", "cc_binary") + +package( + default_applicable_licenses = ["//:license"], + licenses = ["notice"], +) + +cc_binary( + name = "driver_ast_parser", + srcs = [ + "driver_ast_parser.cc", + "driver_ast_parser.h", + ], +) + +build_test( + name = "driver_ast_parser_test", + targets = [":driver_ast_parser"], +) diff --git a/tools/nvidia_driver_differ/driver_ast_parser.cc b/tools/nvidia_driver_differ/driver_ast_parser.cc new file mode 100644 index 000000000..851535d0e --- /dev/null +++ b/tools/nvidia_driver_differ/driver_ast_parser.cc @@ -0,0 +1,16 @@ +// Copyright 2024 The gVisor Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "tools/nvidia_driver_differ/driver_ast_parser.h" +int main(int argc, const char **argv) {} diff --git a/tools/nvidia_driver_differ/driver_ast_parser.h b/tools/nvidia_driver_differ/driver_ast_parser.h new file mode 100644 index 000000000..cf244210f --- /dev/null +++ b/tools/nvidia_driver_differ/driver_ast_parser.h @@ -0,0 +1,17 @@ +// Copyright 2024 The gVisor Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#ifndef TOOLS_NVIDIA_DRIVER_DIFFER_DRIVER_AST_PARSER_H_ +#define TOOLS_NVIDIA_DRIVER_DIFFER_DRIVER_AST_PARSER_H_ +#endif // TOOLS_NVIDIA_DRIVER_DIFFER_DRIVER_AST_PARSER_H_