aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-06-13 17:29:05 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-06-17 14:57:19 -0400
commit5875cf4cd32ea08d0d6abb82091f2d1f7cd6889f (patch)
tree4db17cc17b8eb7e26818eadfafe6a0c5288e0921 /tools/perf
parent5e2156d837e875c0277bbe9c5cd965ff56539e0b (diff)
perf tests: Add missing SPDX headers
Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: https://lkml.kernel.org/n/tip-p0kg493z2m8qizjbdefzip1i@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/tests/Build2
-rw-r--r--tools/perf/tests/bp_account.c1
-rw-r--r--tools/perf/tests/bpf-script-example.c1
-rw-r--r--tools/perf/tests/bpf-script-test-kbuild.c1
-rw-r--r--tools/perf/tests/bpf-script-test-prologue.c1
-rw-r--r--tools/perf/tests/bpf-script-test-relocation.c1
-rw-r--r--tools/perf/tests/bpf.c1
-rw-r--r--tools/perf/tests/map_groups.c1
-rw-r--r--tools/perf/tests/mem.c1
-rw-r--r--tools/perf/tests/mem2node.c1
-rw-r--r--tools/perf/tests/shell/lib/probe.sh1
-rwxr-xr-xtools/perf/tests/shell/probe_vfs_getname.sh3
-rwxr-xr-xtools/perf/tests/shell/record+probe_libc_inet_pton.sh1
-rwxr-xr-xtools/perf/tests/shell/record+script_probe_vfs_getname.sh1
-rwxr-xr-xtools/perf/tests/shell/record+zstd_comp_decomp.sh2
-rwxr-xr-xtools/perf/tests/shell/trace+probe_vfs_getname.sh1
16 files changed, 19 insertions, 1 deletions
diff --git a/tools/perf/tests/Build b/tools/perf/tests/Build
index e3ba63cef01e..e72accefd669 100644
--- a/tools/perf/tests/Build
+++ b/tools/perf/tests/Build
@@ -1,3 +1,5 @@
1# SPDX-License-Identifier: GPL-2.0
2
1perf-y += builtin-test.o 3perf-y += builtin-test.o
2perf-y += parse-events.o 4perf-y += parse-events.o
3perf-y += dso-data.o 5perf-y += dso-data.o
diff --git a/tools/perf/tests/bp_account.c b/tools/perf/tests/bp_account.c
index 57fc544aedb0..153624e2d0f5 100644
--- a/tools/perf/tests/bp_account.c
+++ b/tools/perf/tests/bp_account.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * Powerpc needs __SANE_USERSPACE_TYPES__ before <linux/types.h> to select 3 * Powerpc needs __SANE_USERSPACE_TYPES__ before <linux/types.h> to select
3 * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu. 4 * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu.
diff --git a/tools/perf/tests/bpf-script-example.c b/tools/perf/tests/bpf-script-example.c
index 1ca5106df5f1..ab4b98b3165d 100644
--- a/tools/perf/tests/bpf-script-example.c
+++ b/tools/perf/tests/bpf-script-example.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * bpf-script-example.c 3 * bpf-script-example.c
3 * Test basic LLVM building 4 * Test basic LLVM building
diff --git a/tools/perf/tests/bpf-script-test-kbuild.c b/tools/perf/tests/bpf-script-test-kbuild.c
index ff3ec8337f0a..219673aa278f 100644
--- a/tools/perf/tests/bpf-script-test-kbuild.c
+++ b/tools/perf/tests/bpf-script-test-kbuild.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * bpf-script-test-kbuild.c 3 * bpf-script-test-kbuild.c
3 * Test include from kernel header 4 * Test include from kernel header
diff --git a/tools/perf/tests/bpf-script-test-prologue.c b/tools/perf/tests/bpf-script-test-prologue.c
index 43f1e16486f4..bd83d364cf30 100644
--- a/tools/perf/tests/bpf-script-test-prologue.c
+++ b/tools/perf/tests/bpf-script-test-prologue.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * bpf-script-test-prologue.c 3 * bpf-script-test-prologue.c
3 * Test BPF prologue 4 * Test BPF prologue
diff --git a/tools/perf/tests/bpf-script-test-relocation.c b/tools/perf/tests/bpf-script-test-relocation.c
index 93af77421816..74006e4b2d24 100644
--- a/tools/perf/tests/bpf-script-test-relocation.c
+++ b/tools/perf/tests/bpf-script-test-relocation.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * bpf-script-test-relocation.c 3 * bpf-script-test-relocation.c
3 * Test BPF loader checking relocation 4 * Test BPF loader checking relocation
diff --git a/tools/perf/tests/bpf.c b/tools/perf/tests/bpf.c
index 79b54f8ddebf..c9e4cdc4c9c8 100644
--- a/tools/perf/tests/bpf.c
+++ b/tools/perf/tests/bpf.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1#include <errno.h> 2#include <errno.h>
2#include <stdio.h> 3#include <stdio.h>
3#include <sys/epoll.h> 4#include <sys/epoll.h>
diff --git a/tools/perf/tests/map_groups.c b/tools/perf/tests/map_groups.c
index 70d96acc6dcf..594fdaca4f71 100644
--- a/tools/perf/tests/map_groups.c
+++ b/tools/perf/tests/map_groups.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1#include <linux/compiler.h> 2#include <linux/compiler.h>
2#include <linux/kernel.h> 3#include <linux/kernel.h>
3#include "tests.h" 4#include "tests.h"
diff --git a/tools/perf/tests/mem.c b/tools/perf/tests/mem.c
index 0f82ee9fd3f7..efe3397824d2 100644
--- a/tools/perf/tests/mem.c
+++ b/tools/perf/tests/mem.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1#include "util/mem-events.h" 2#include "util/mem-events.h"
2#include "util/symbol.h" 3#include "util/symbol.h"
3#include "linux/perf_event.h" 4#include "linux/perf_event.h"
diff --git a/tools/perf/tests/mem2node.c b/tools/perf/tests/mem2node.c
index 9e9e4d37cc77..d23ff1b68eba 100644
--- a/tools/perf/tests/mem2node.c
+++ b/tools/perf/tests/mem2node.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1#include <linux/compiler.h> 2#include <linux/compiler.h>
2#include <linux/bitmap.h> 3#include <linux/bitmap.h>
3#include "cpumap.h" 4#include "cpumap.h"
diff --git a/tools/perf/tests/shell/lib/probe.sh b/tools/perf/tests/shell/lib/probe.sh
index e37787be672b..51e3f60baba0 100644
--- a/tools/perf/tests/shell/lib/probe.sh
+++ b/tools/perf/tests/shell/lib/probe.sh
@@ -1,3 +1,4 @@
1# SPDX-License-Identifier: GPL-2.0
1# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017 2# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017
2 3
3skip_if_no_perf_probe() { 4skip_if_no_perf_probe() {
diff --git a/tools/perf/tests/shell/probe_vfs_getname.sh b/tools/perf/tests/shell/probe_vfs_getname.sh
index 46e076e3c537..5d1b63d3f3e1 100755
--- a/tools/perf/tests/shell/probe_vfs_getname.sh
+++ b/tools/perf/tests/shell/probe_vfs_getname.sh
@@ -1,6 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2# Add vfs_getname probe to get syscall args filenames 2# Add vfs_getname probe to get syscall args filenames
3# 3
4# SPDX-License-Identifier: GPL-2.0
4# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017 5# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017
5 6
6. $(dirname $0)/lib/probe.sh 7. $(dirname $0)/lib/probe.sh
diff --git a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh
index 61c9f8fc6fa1..9b7632ff70aa 100755
--- a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh
+++ b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh
@@ -7,6 +7,7 @@
7# This needs no debuginfo package, all is done using the libc ELF symtab 7# This needs no debuginfo package, all is done using the libc ELF symtab
8# and the CFI info in the binaries. 8# and the CFI info in the binaries.
9 9
10# SPDX-License-Identifier: GPL-2.0
10# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017 11# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017
11 12
12. $(dirname $0)/lib/probe.sh 13. $(dirname $0)/lib/probe.sh
diff --git a/tools/perf/tests/shell/record+script_probe_vfs_getname.sh b/tools/perf/tests/shell/record+script_probe_vfs_getname.sh
index 9b073e7fa88c..54030c18bfc2 100755
--- a/tools/perf/tests/shell/record+script_probe_vfs_getname.sh
+++ b/tools/perf/tests/shell/record+script_probe_vfs_getname.sh
@@ -6,6 +6,7 @@
6# checks that that was captured by the vfs_getname probe in the generated 6# checks that that was captured by the vfs_getname probe in the generated
7# perf.data file, with the temp file name as the pathname argument. 7# perf.data file, with the temp file name as the pathname argument.
8 8
9# SPDX-License-Identifier: GPL-2.0
9# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017 10# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017
10 11
11. $(dirname $0)/lib/probe.sh 12. $(dirname $0)/lib/probe.sh
diff --git a/tools/perf/tests/shell/record+zstd_comp_decomp.sh b/tools/perf/tests/shell/record+zstd_comp_decomp.sh
index 5dcba800109f..899604d17b85 100755
--- a/tools/perf/tests/shell/record+zstd_comp_decomp.sh
+++ b/tools/perf/tests/shell/record+zstd_comp_decomp.sh
@@ -1,6 +1,8 @@
1#!/bin/sh 1#!/bin/sh
2# Zstd perf.data compression/decompression 2# Zstd perf.data compression/decompression
3 3
4# SPDX-License-Identifier: GPL-2.0
5
4trace_file=$(mktemp /tmp/perf.data.XXX) 6trace_file=$(mktemp /tmp/perf.data.XXX)
5perf_tool=perf 7perf_tool=perf
6 8
diff --git a/tools/perf/tests/shell/trace+probe_vfs_getname.sh b/tools/perf/tests/shell/trace+probe_vfs_getname.sh
index 147efeb6b195..45d269b0157e 100755
--- a/tools/perf/tests/shell/trace+probe_vfs_getname.sh
+++ b/tools/perf/tests/shell/trace+probe_vfs_getname.sh
@@ -7,6 +7,7 @@
7# that already handles "probe:vfs_getname" if present, and used in the 7# that already handles "probe:vfs_getname" if present, and used in the
8# "open" syscall "filename" argument beautifier. 8# "open" syscall "filename" argument beautifier.
9 9
10# SPDX-License-Identifier: GPL-2.0
10# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017 11# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017
11 12
12. $(dirname $0)/lib/probe.sh 13. $(dirname $0)/lib/probe.sh