summaryrefslogtreecommitdiffstats
path: root/tools/rmtool/src
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-08 11:53:20 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-08 11:53:20 -0400
commit2ee4fe8f43b0dc3e080c91931eadade1fd636c27 (patch)
tree01432ca250db20d95327440ddb87b95b6ffd9abb /tools/rmtool/src
parent668097c9753a7a42b5f98dec45ca1fb7023a053c (diff)
downloadopen-iov-2ee4fe8f43b0dc3e080c91931eadade1fd636c27.tar.gz
open-iov-2ee4fe8f43b0dc3e080c91931eadade1fd636c27.zip
spdx: add BSD-3-Clause identifiers to userspace/tools/scripts sources
Sweep of the 155 tracked C/Python/shell files under userspace/ (excluding the MIT-licensed vendored userspace/extern/), tools/ and scripts/ that had no per-file license identifier. Each gains the minimal two-line header in the area's existing form: 'SPDX-License-Identifier: BSD-3-Clause' plus 'Copyright (c) 2026 Open-IOV contributors'; shebang and coding lines stay first. No other content touched. kernel/** is deliberately out of scope (recorded as a follow-up in CODESTD-REPORT-2026-10-08.md): its SPDX coverage and MODULE_LICENSE normalization need their own GPL-2.0 pass.
Diffstat (limited to 'tools/rmtool/src')
-rw-r--r--tools/rmtool/src/engine.c2
-rw-r--r--tools/rmtool/src/gpu.c2
-rw-r--r--tools/rmtool/src/main.c2
-rw-r--r--tools/rmtool/src/mem.c2
-rw-r--r--tools/rmtool/src/nv2080.c2
-rw-r--r--tools/rmtool/src/output.c2
-rw-r--r--tools/rmtool/src/query.c2
-rw-r--r--tools/rmtool/src/rm_api.c2
8 files changed, 16 insertions, 0 deletions
diff --git a/tools/rmtool/src/engine.c b/tools/rmtool/src/engine.c
index c247e47..283856c 100644
--- a/tools/rmtool/src/engine.c
+++ b/tools/rmtool/src/engine.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/* Copyright (c) 2026 Open-IOV contributors */
/* engine.c - rmtool engine list/info via read-only GPU/engine controls. */
#include <getopt.h>
#include <stdio.h>
diff --git a/tools/rmtool/src/gpu.c b/tools/rmtool/src/gpu.c
index ff9b26c..7db1353 100644
--- a/tools/rmtool/src/gpu.c
+++ b/tools/rmtool/src/gpu.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/* Copyright (c) 2026 Open-IOV contributors */
/* gpu.c - rmtool gpu list/topology/info: enumeration and identity queries. */
#include <getopt.h>
#include <stdio.h>
diff --git a/tools/rmtool/src/main.c b/tools/rmtool/src/main.c
index 4e4b440..79a34bb 100644
--- a/tools/rmtool/src/main.c
+++ b/tools/rmtool/src/main.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/* Copyright (c) 2026 Open-IOV contributors */
/* main.c - rmtool entry point: command dispatch and global help/version.
*
* rmtool is a read-only host RM oracle for the Open-IOV accuracy loop. It
diff --git a/tools/rmtool/src/mem.c b/tools/rmtool/src/mem.c
index a85bd70..52a3e5a 100644
--- a/tools/rmtool/src/mem.c
+++ b/tools/rmtool/src/mem.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/* Copyright (c) 2026 Open-IOV contributors */
/* mem.c - rmtool mem stats: read-only FB/heap/BAR1 information.
*
* Allocation, mapping, pinning and arbitrary-handle inspection are
diff --git a/tools/rmtool/src/nv2080.c b/tools/rmtool/src/nv2080.c
index 5dd808e..0cf1cf1 100644
--- a/tools/rmtool/src/nv2080.c
+++ b/tools/rmtool/src/nv2080.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/* Copyright (c) 2026 Open-IOV contributors */
/* nv2080.c - rmtool nv2080 class list / method call and sample.
*
* The generic control entry point is restricted to a read-only allowlist so
diff --git a/tools/rmtool/src/output.c b/tools/rmtool/src/output.c
index 6de5d02..289256c 100644
--- a/tools/rmtool/src/output.c
+++ b/tools/rmtool/src/output.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/* Copyright (c) 2026 Open-IOV contributors */
/* output.c - table/JSON/CSV formatting helpers shared by rmtool commands. */
#include <ctype.h>
#include <stdio.h>
diff --git a/tools/rmtool/src/query.c b/tools/rmtool/src/query.c
index c9a7460..37cf3f8 100644
--- a/tools/rmtool/src/query.c
+++ b/tools/rmtool/src/query.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/* Copyright (c) 2026 Open-IOV contributors */
/* query.c - shared read-only RM queries used by rmtool and rmtop. */
#include <stdio.h>
#include <stdlib.h>
diff --git a/tools/rmtool/src/rm_api.c b/tools/rmtool/src/rm_api.c
index 17fb48b..fd459cd 100644
--- a/tools/rmtool/src/rm_api.c
+++ b/tools/rmtool/src/rm_api.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/* Copyright (c) 2026 Open-IOV contributors */
/* rm_api.c - RM ioctl client, GPU discovery and control plumbing.
*
* The ioctl ladder (root -> device -> subdevice) and NV_ESC_RM_CONTROL