From 42ec3c1ef7d86257a5f5c58d586bb785c9ca6b38 Mon Sep 17 00:00:00 2001 From: Davide Girardi <1390902+girodav@users.noreply.github.com> Date: Fri, 20 Sep 2024 07:59:53 +0100 Subject: [PATCH] Remove references to Elasticsearch in copyright notices (#146) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tim Rühsen Co-authored-by: Christos Kalkanis --- armhelpers/arm_helpers.go | 7 ++----- cli_flags.go | 7 ++----- host/host.go | 7 ++----- hostmetadata/collector.go | 7 ++----- interpreter/apmint/apmint.go | 7 ++----- interpreter/apmint/socket.go | 7 ++----- interpreter/dotnet/cachingreader.go | 7 ++----- interpreter/dotnet/data.go | 7 ++----- interpreter/dotnet/dotnet.go | 7 ++----- interpreter/dotnet/instance.go | 7 ++----- interpreter/dotnet/method.go | 7 ++----- interpreter/dotnet/nativereader.go | 7 ++----- interpreter/dotnet/nativereader_test.go | 7 ++----- interpreter/dotnet/nibblereader.go | 7 ++----- interpreter/dotnet/nibblereader_test.go | 7 ++----- interpreter/dotnet/pe.go | 7 ++----- interpreter/hotspot/data.go | 7 ++----- interpreter/hotspot/demangle.go | 7 ++----- interpreter/hotspot/demangle_test.go | 7 ++----- interpreter/hotspot/hotspot.go | 7 ++----- interpreter/hotspot/instance.go | 7 ++----- interpreter/hotspot/instance_test.go | 7 ++----- interpreter/hotspot/method.go | 7 ++----- interpreter/hotspot/recordingreader.go | 7 ++----- interpreter/hotspot/recordingreader_test.go | 7 ++----- interpreter/hotspot/stubs.go | 7 ++----- interpreter/hotspot/unsigned5.go | 7 ++----- interpreter/hotspot/unsigned5_test.go | 7 ++----- interpreter/instancestubs.go | 7 ++----- interpreter/loaderinfo.go | 7 ++----- interpreter/nodev8/v8.go | 7 ++----- interpreter/perl/data.go | 7 ++----- interpreter/perl/instance.go | 7 ++----- interpreter/perl/perl.go | 7 ++----- interpreter/php/decode_amd64.go | 7 ++----- interpreter/php/decode_arm64.go | 7 ++----- interpreter/php/instance.go | 7 ++----- interpreter/php/opcache.go | 7 ++----- interpreter/php/php.go | 7 ++----- interpreter/php/php_test.go | 7 ++----- interpreter/python/decode.go | 7 ++----- interpreter/python/decode_amd64.go | 7 ++----- interpreter/python/decode_arm64.go | 7 ++----- interpreter/python/decode_test.go | 7 ++----- interpreter/python/python.go | 7 ++----- interpreter/python/python_test.go | 7 ++----- interpreter/ruby/ruby.go | 7 ++----- interpreter/types.go | 7 ++----- libpf/address.go | 7 ++----- libpf/apm.go | 7 ++----- libpf/basehash/basehash.go | 7 ++----- libpf/basehash/hash128.go | 7 ++----- libpf/basehash/hash128_test.go | 7 ++----- libpf/basehash/hash64.go | 7 ++----- libpf/basehash/hash64_test.go | 7 ++----- libpf/convenience.go | 7 ++----- libpf/convenience_test.go | 7 ++----- libpf/fileid.go | 7 ++----- libpf/fileid_test.go | 7 ++----- libpf/frameid.go | 7 ++----- libpf/frameid_test.go | 7 ++----- libpf/frametype.go | 7 ++----- libpf/frametype_test.go | 7 ++----- libpf/generics.go | 7 ++----- libpf/hash/hash.go | 7 ++----- libpf/hash/hash_test.go | 7 ++----- libpf/interpretertype.go | 7 ++----- libpf/libpf.go | 7 ++----- libpf/libpf_test.go | 7 ++----- libpf/pfelf/addressmapper.go | 7 ++----- libpf/pfelf/addressmapper_test.go | 7 ++----- libpf/pfelf/elfopener.go | 7 ++----- libpf/pfelf/file.go | 7 ++----- libpf/pfelf/file_test.go | 7 ++----- libpf/pfelf/pfelf.go | 7 ++----- libpf/pfelf/pfelf_test.go | 7 ++----- libpf/pfelf/reference.go | 7 ++----- libpf/readatbuf/readatbuf.go | 7 ++----- libpf/readatbuf/readatbuf_test.go | 7 ++----- libpf/symbol.go | 7 ++----- libpf/trace.go | 7 ++----- libpf/tracehash.go | 7 ++----- libpf/tracehash_test.go | 7 ++----- libpf/xsync/doc.go | 7 ++----- libpf/xsync/once.go | 7 ++----- libpf/xsync/once_test.go | 7 ++----- libpf/xsync/rwlock.go | 7 ++----- libpf/xsync/rwlock_test.go | 7 ++----- lpm/lpm.go | 7 ++----- lpm/lpm_test.go | 7 ++----- maccess/maccess.go | 7 ++----- maccess/maccess_amd64.go | 7 ++----- maccess/maccess_amd64_test.go | 7 ++----- maccess/maccess_arm64.go | 7 ++----- maccess/maccess_arm64_test.go | 7 ++----- main.go | 13 +++++-------- metrics/doc.go | 7 ++----- metrics/genids/main.go | 7 ++----- metrics/metrics.go | 7 ++----- metrics/metrics_test.go | 7 ++----- metrics/types.go | 7 ++----- nativeunwind/elfunwindinfo/elfehframe.go | 7 ++----- nativeunwind/elfunwindinfo/elfehframe_aarch64.go | 7 ++----- nativeunwind/elfunwindinfo/elfehframe_test.go | 7 ++----- nativeunwind/elfunwindinfo/elfehframe_x86.go | 7 ++----- nativeunwind/elfunwindinfo/elfgopclntab.go | 7 ++----- nativeunwind/elfunwindinfo/elfgopclntab_test.go | 7 ++----- nativeunwind/elfunwindinfo/stackdeltaextraction.go | 7 ++----- .../elfunwindinfo/stackdeltaextraction_test.go | 7 ++----- nativeunwind/elfunwindinfo/stackdeltaprovider.go | 7 ++----- nativeunwind/elfunwindinfo/testdata/helloworld.go | 7 ++----- nativeunwind/stackdeltaprovider.go | 7 ++----- nativeunwind/stackdeltatypes/stackdeltatypes.go | 7 ++----- nopanicslicereader/nopanicslicereader.go | 7 ++----- nopanicslicereader/nopanicslicereader_test.go | 7 ++----- pacmask/pacmask_arm64.go | 7 ++----- pacmask/pacmask_other.go | 7 ++----- periodiccaller/periodiccaller.go | 7 ++----- periodiccaller/periodiccaller_test.go | 7 ++----- proc/proc.go | 7 ++----- proc/proc_test.go | 7 ++----- process/coredump.go | 7 ++----- process/debug.go | 7 ++----- process/debug_amd64.go | 7 ++----- process/debug_arm64.go | 7 ++----- process/process.go | 7 ++----- process/process_test.go | 7 ++----- process/types.go | 7 ++----- processmanager/ebpf/asyncupdate.go | 7 ++----- processmanager/ebpf/asyncupdate_integration_test.go | 7 ++----- processmanager/ebpf/ebpf.go | 7 ++----- processmanager/ebpf/ebpf_integration_test.go | 7 ++----- processmanager/ebpf/ebpf_test.go | 7 ++----- processmanager/ebpf/types.go | 7 ++----- processmanager/execinfomanager/manager.go | 7 ++----- processmanager/helpers.go | 7 ++----- processmanager/manager.go | 7 ++----- processmanager/manager_test.go | 7 ++----- processmanager/processinfo.go | 7 ++----- processmanager/synthdeltas_arm64.go | 7 ++----- processmanager/synthdeltas_other.go | 7 ++----- processmanager/types.go | 7 ++----- remotememory/remotememory.go | 7 ++----- remotememory/remotememory_test.go | 7 ++----- reporter/config.go | 7 ++----- reporter/fifo.go | 7 ++----- reporter/fifo_test.go | 7 ++----- reporter/iface.go | 7 ++----- reporter/metrics.go | 7 ++----- reporter/otlp_reporter.go | 7 ++----- reporter/times.go | 7 ++----- rlimit/rlimit.go | 7 ++----- stringutil/stringutil.go | 7 ++----- stringutil/stringutil_test.go | 7 ++----- successfailurecounter/successfailurecounter.go | 7 ++----- successfailurecounter/successfailurecounter_test.go | 7 ++----- support/ebpf_integration_test.go | 7 ++----- support/support.go | 7 ++----- support/support_amd64.go | 7 ++----- support/support_arm64.go | 7 ++----- support/support_dummy.go | 7 ++----- support/types.go | 7 ++----- testsupport/io.go | 7 ++----- testsupport/testfiles.go | 7 ++----- times/ktime.go | 7 ++----- times/times.go | 7 ++----- tools/coredump/analyze.go | 7 ++----- tools/coredump/clean.go | 7 ++----- tools/coredump/coredump.go | 7 ++----- tools/coredump/coredump_test.go | 7 ++----- tools/coredump/ebpfcode.go | 7 ++----- tools/coredump/ebpfcontext.go | 7 ++----- tools/coredump/ebpfhelpers.go | 7 ++----- tools/coredump/ebpfmaps.go | 7 ++----- tools/coredump/exportmodule.go | 7 ++----- tools/coredump/gdb.go | 7 ++----- tools/coredump/json.go | 7 ++----- tools/coredump/main.go | 7 ++----- tools/coredump/modulestore/id.go | 7 ++----- tools/coredump/modulestore/reader.go | 7 ++----- tools/coredump/modulestore/store.go | 7 ++----- tools/coredump/modulestore/util.go | 7 ++----- tools/coredump/new.go | 7 ++----- tools/coredump/rebase.go | 7 ++----- tools/coredump/storecoredump.go | 7 ++----- tools/coredump/testsources/go/hello.go | 7 ++----- tools/coredump/upload.go | 7 ++----- tools/errors-codegen/main.go | 7 ++----- tools/stackdeltas/stackdeltas.go | 7 ++----- tools/zstpak/lib/zstpak.go | 7 ++----- tools/zstpak/lib/zstpak_test.go | 7 ++----- tools/zstpak/main.go | 7 ++----- tpbase/assembly_decode.go | 7 ++----- tpbase/assembly_decode_amd64.go | 7 ++----- tpbase/assembly_decode_arm64.go | 7 ++----- tpbase/assembly_decode_test.go | 7 ++----- tpbase/libc.go | 7 ++----- tpbase/libc_amd64.go | 7 ++----- tpbase/libc_arm64.go | 7 ++----- tpbase/libc_test.go | 7 ++----- tpbase/tpbase.go | 7 ++----- tracehandler/metrics.go | 7 ++----- tracehandler/tracehandler.go | 7 ++----- tracehandler/tracehandler_test.go | 7 ++----- tracer/ebpf_integration_test.go | 7 ++----- tracer/events.go | 7 ++----- tracer/helper.go | 7 ++----- tracer/maccess.go | 7 ++----- tracer/probe_linux.go | 7 ++----- tracer/probe_other.go | 7 ++----- tracer/systemconfig.go | 7 ++----- tracer/tpbase.go | 7 ++----- tracer/tracepoints.go | 7 ++----- tracer/tracer.go | 7 ++----- tracer/types/parse.go | 7 ++----- tracer/types/parse_test.go | 7 ++----- traceutil/traceutil.go | 7 ++----- traceutil/traceutil_test.go | 7 ++----- util/util.go | 7 ++----- vc/vc.go | 7 ++----- 220 files changed, 443 insertions(+), 1103 deletions(-) diff --git a/armhelpers/arm_helpers.go b/armhelpers/arm_helpers.go index e7ab0b93..19d409b6 100644 --- a/armhelpers/arm_helpers.go +++ b/armhelpers/arm_helpers.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // This package contains a series of helper functions that are useful for ARM disassembly. package armhelpers diff --git a/cli_flags.go b/cli_flags.go index fe98725a..b15663d8 100644 --- a/cli_flags.go +++ b/cli_flags.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/host/host.go b/host/host.go index e6c13209..d4a38992 100644 --- a/host/host.go +++ b/host/host.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package host implements types and methods specific to interacting with eBPF maps. package host diff --git a/hostmetadata/collector.go b/hostmetadata/collector.go index 89210378..b63ed51c 100644 --- a/hostmetadata/collector.go +++ b/hostmetadata/collector.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hostmetadata diff --git a/interpreter/apmint/apmint.go b/interpreter/apmint/apmint.go index 77703c05..108072a0 100644 --- a/interpreter/apmint/apmint.go +++ b/interpreter/apmint/apmint.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package apmint implements a pseudo interpreter handler that detects APM agent // libraries, establishes socket connections with them and notifies them about diff --git a/interpreter/apmint/socket.go b/interpreter/apmint/socket.go index b78bcd46..7c1879ed 100644 --- a/interpreter/apmint/socket.go +++ b/interpreter/apmint/socket.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package apmint diff --git a/interpreter/dotnet/cachingreader.go b/interpreter/dotnet/cachingreader.go index 4a940a2b..95ccd1f1 100644 --- a/interpreter/dotnet/cachingreader.go +++ b/interpreter/dotnet/cachingreader.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package dotnet diff --git a/interpreter/dotnet/data.go b/interpreter/dotnet/data.go index 35979dd6..0064c4cc 100644 --- a/interpreter/dotnet/data.go +++ b/interpreter/dotnet/data.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package dotnet diff --git a/interpreter/dotnet/dotnet.go b/interpreter/dotnet/dotnet.go index 6b7e24d4..971fb34f 100644 --- a/interpreter/dotnet/dotnet.go +++ b/interpreter/dotnet/dotnet.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package dotnet diff --git a/interpreter/dotnet/instance.go b/interpreter/dotnet/instance.go index a8777125..8b11aeff 100644 --- a/interpreter/dotnet/instance.go +++ b/interpreter/dotnet/instance.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package dotnet diff --git a/interpreter/dotnet/method.go b/interpreter/dotnet/method.go index 19dd0f2e..86bbdd0a 100644 --- a/interpreter/dotnet/method.go +++ b/interpreter/dotnet/method.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package dotnet diff --git a/interpreter/dotnet/nativereader.go b/interpreter/dotnet/nativereader.go index a19c23c0..66091e28 100644 --- a/interpreter/dotnet/nativereader.go +++ b/interpreter/dotnet/nativereader.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package dotnet diff --git a/interpreter/dotnet/nativereader_test.go b/interpreter/dotnet/nativereader_test.go index 4b48ae25..91a70b3b 100644 --- a/interpreter/dotnet/nativereader_test.go +++ b/interpreter/dotnet/nativereader_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package dotnet diff --git a/interpreter/dotnet/nibblereader.go b/interpreter/dotnet/nibblereader.go index d02e6295..850c64fe 100644 --- a/interpreter/dotnet/nibblereader.go +++ b/interpreter/dotnet/nibblereader.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package dotnet diff --git a/interpreter/dotnet/nibblereader_test.go b/interpreter/dotnet/nibblereader_test.go index 903f192c..106b39f3 100644 --- a/interpreter/dotnet/nibblereader_test.go +++ b/interpreter/dotnet/nibblereader_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package dotnet diff --git a/interpreter/dotnet/pe.go b/interpreter/dotnet/pe.go index e52b91dd..fc17d8b2 100644 --- a/interpreter/dotnet/pe.go +++ b/interpreter/dotnet/pe.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package dotnet diff --git a/interpreter/hotspot/data.go b/interpreter/hotspot/data.go index 8fb55913..a8c307b3 100644 --- a/interpreter/hotspot/data.go +++ b/interpreter/hotspot/data.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hotspot diff --git a/interpreter/hotspot/demangle.go b/interpreter/hotspot/demangle.go index ea359a89..bd00e909 100644 --- a/interpreter/hotspot/demangle.go +++ b/interpreter/hotspot/demangle.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hotspot diff --git a/interpreter/hotspot/demangle_test.go b/interpreter/hotspot/demangle_test.go index 3ac3a5e4..d6363257 100644 --- a/interpreter/hotspot/demangle_test.go +++ b/interpreter/hotspot/demangle_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hotspot diff --git a/interpreter/hotspot/hotspot.go b/interpreter/hotspot/hotspot.go index 500d1030..90e2d1bc 100644 --- a/interpreter/hotspot/hotspot.go +++ b/interpreter/hotspot/hotspot.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hotspot diff --git a/interpreter/hotspot/instance.go b/interpreter/hotspot/instance.go index 343c56e9..c3e8e36c 100644 --- a/interpreter/hotspot/instance.go +++ b/interpreter/hotspot/instance.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hotspot diff --git a/interpreter/hotspot/instance_test.go b/interpreter/hotspot/instance_test.go index 42f2df30..57c25456 100644 --- a/interpreter/hotspot/instance_test.go +++ b/interpreter/hotspot/instance_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hotspot diff --git a/interpreter/hotspot/method.go b/interpreter/hotspot/method.go index c9fe119b..95433fe9 100644 --- a/interpreter/hotspot/method.go +++ b/interpreter/hotspot/method.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hotspot diff --git a/interpreter/hotspot/recordingreader.go b/interpreter/hotspot/recordingreader.go index 61f5cd5b..e8e6b881 100644 --- a/interpreter/hotspot/recordingreader.go +++ b/interpreter/hotspot/recordingreader.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hotspot diff --git a/interpreter/hotspot/recordingreader_test.go b/interpreter/hotspot/recordingreader_test.go index d2d0b3a8..1b0d936b 100644 --- a/interpreter/hotspot/recordingreader_test.go +++ b/interpreter/hotspot/recordingreader_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hotspot diff --git a/interpreter/hotspot/stubs.go b/interpreter/hotspot/stubs.go index 183454b6..0ed24cf6 100644 --- a/interpreter/hotspot/stubs.go +++ b/interpreter/hotspot/stubs.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hotspot diff --git a/interpreter/hotspot/unsigned5.go b/interpreter/hotspot/unsigned5.go index 01f3cec0..342f5a30 100644 --- a/interpreter/hotspot/unsigned5.go +++ b/interpreter/hotspot/unsigned5.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hotspot diff --git a/interpreter/hotspot/unsigned5_test.go b/interpreter/hotspot/unsigned5_test.go index b63153bc..965bedf3 100644 --- a/interpreter/hotspot/unsigned5_test.go +++ b/interpreter/hotspot/unsigned5_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hotspot diff --git a/interpreter/instancestubs.go b/interpreter/instancestubs.go index dfb60c5b..41a0e879 100644 --- a/interpreter/instancestubs.go +++ b/interpreter/instancestubs.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package interpreter diff --git a/interpreter/loaderinfo.go b/interpreter/loaderinfo.go index 3d4070c9..d2f3c01a 100644 --- a/interpreter/loaderinfo.go +++ b/interpreter/loaderinfo.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package interpreter diff --git a/interpreter/nodev8/v8.go b/interpreter/nodev8/v8.go index f2b45573..6af38857 100644 --- a/interpreter/nodev8/v8.go +++ b/interpreter/nodev8/v8.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package nodev8 diff --git a/interpreter/perl/data.go b/interpreter/perl/data.go index 7bad649f..11278db2 100644 --- a/interpreter/perl/data.go +++ b/interpreter/perl/data.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package perl diff --git a/interpreter/perl/instance.go b/interpreter/perl/instance.go index 6ea6443c..87f95826 100644 --- a/interpreter/perl/instance.go +++ b/interpreter/perl/instance.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package perl diff --git a/interpreter/perl/perl.go b/interpreter/perl/perl.go index 539f2fe4..8c4c1859 100644 --- a/interpreter/perl/perl.go +++ b/interpreter/perl/perl.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package perl diff --git a/interpreter/php/decode_amd64.go b/interpreter/php/decode_amd64.go index 87b88cee..9a633784 100644 --- a/interpreter/php/decode_amd64.go +++ b/interpreter/php/decode_amd64.go @@ -1,10 +1,7 @@ //go:build amd64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package php diff --git a/interpreter/php/decode_arm64.go b/interpreter/php/decode_arm64.go index 329eb92c..59c440fb 100644 --- a/interpreter/php/decode_arm64.go +++ b/interpreter/php/decode_arm64.go @@ -1,10 +1,7 @@ //go:build arm64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package php diff --git a/interpreter/php/instance.go b/interpreter/php/instance.go index 195014c1..6f3d2dfa 100644 --- a/interpreter/php/instance.go +++ b/interpreter/php/instance.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package php diff --git a/interpreter/php/opcache.go b/interpreter/php/opcache.go index 7bae77a7..44149716 100644 --- a/interpreter/php/opcache.go +++ b/interpreter/php/opcache.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package php diff --git a/interpreter/php/php.go b/interpreter/php/php.go index 55923c68..07609800 100644 --- a/interpreter/php/php.go +++ b/interpreter/php/php.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package php diff --git a/interpreter/php/php_test.go b/interpreter/php/php_test.go index b36e2b7b..92b661c9 100644 --- a/interpreter/php/php_test.go +++ b/interpreter/php/php_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package php diff --git a/interpreter/python/decode.go b/interpreter/python/decode.go index c8829b79..7a97b57e 100644 --- a/interpreter/python/decode.go +++ b/interpreter/python/decode.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package python diff --git a/interpreter/python/decode_amd64.go b/interpreter/python/decode_amd64.go index f5748471..804246cd 100644 --- a/interpreter/python/decode_amd64.go +++ b/interpreter/python/decode_amd64.go @@ -1,10 +1,7 @@ //go:build amd64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package python diff --git a/interpreter/python/decode_arm64.go b/interpreter/python/decode_arm64.go index 73e9e4e9..2434ac00 100644 --- a/interpreter/python/decode_arm64.go +++ b/interpreter/python/decode_arm64.go @@ -1,10 +1,7 @@ //go:build arm64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package python diff --git a/interpreter/python/decode_test.go b/interpreter/python/decode_test.go index b26c116e..c8cc97a1 100644 --- a/interpreter/python/decode_test.go +++ b/interpreter/python/decode_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package python diff --git a/interpreter/python/python.go b/interpreter/python/python.go index c1a8c245..874de3b7 100644 --- a/interpreter/python/python.go +++ b/interpreter/python/python.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package python diff --git a/interpreter/python/python_test.go b/interpreter/python/python_test.go index 66c3c322..6e05c1f8 100644 --- a/interpreter/python/python_test.go +++ b/interpreter/python/python_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package python diff --git a/interpreter/ruby/ruby.go b/interpreter/ruby/ruby.go index 01b48d97..7c235c79 100644 --- a/interpreter/ruby/ruby.go +++ b/interpreter/ruby/ruby.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package ruby diff --git a/interpreter/types.go b/interpreter/types.go index 07ff6d44..37766655 100644 --- a/interpreter/types.go +++ b/interpreter/types.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package interpreter diff --git a/libpf/address.go b/libpf/address.go index 58fb9602..1d7a27fc 100644 --- a/libpf/address.go +++ b/libpf/address.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/apm.go b/libpf/apm.go index 14f86930..40f2fd75 100644 --- a/libpf/apm.go +++ b/libpf/apm.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/basehash/basehash.go b/libpf/basehash/basehash.go index ca0d1381..144e7f4b 100644 --- a/libpf/basehash/basehash.go +++ b/libpf/basehash/basehash.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package basehash provides basic types to implement hash identifiers. package basehash diff --git a/libpf/basehash/hash128.go b/libpf/basehash/hash128.go index 5b60dce1..43f3b5ed 100644 --- a/libpf/basehash/hash128.go +++ b/libpf/basehash/hash128.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package basehash diff --git a/libpf/basehash/hash128_test.go b/libpf/basehash/hash128_test.go index 6ad934d1..aa3b05c4 100644 --- a/libpf/basehash/hash128_test.go +++ b/libpf/basehash/hash128_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package basehash diff --git a/libpf/basehash/hash64.go b/libpf/basehash/hash64.go index 11ae925b..01b2c905 100644 --- a/libpf/basehash/hash64.go +++ b/libpf/basehash/hash64.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package basehash diff --git a/libpf/basehash/hash64_test.go b/libpf/basehash/hash64_test.go index d8205b3c..3c6cce96 100644 --- a/libpf/basehash/hash64_test.go +++ b/libpf/basehash/hash64_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package basehash diff --git a/libpf/convenience.go b/libpf/convenience.go index db7daa7f..0c327ef6 100644 --- a/libpf/convenience.go +++ b/libpf/convenience.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/convenience_test.go b/libpf/convenience_test.go index f1833699..b37b4740 100644 --- a/libpf/convenience_test.go +++ b/libpf/convenience_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/fileid.go b/libpf/fileid.go index e04abafc..f498b371 100644 --- a/libpf/fileid.go +++ b/libpf/fileid.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/fileid_test.go b/libpf/fileid_test.go index c21354e1..4d2e6683 100644 --- a/libpf/fileid_test.go +++ b/libpf/fileid_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/frameid.go b/libpf/frameid.go index ce2d3dc4..006c6b51 100644 --- a/libpf/frameid.go +++ b/libpf/frameid.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/frameid_test.go b/libpf/frameid_test.go index eda33939..0bdc5952 100644 --- a/libpf/frameid_test.go +++ b/libpf/frameid_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/frametype.go b/libpf/frametype.go index 7e7d54b3..56345072 100644 --- a/libpf/frametype.go +++ b/libpf/frametype.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/frametype_test.go b/libpf/frametype_test.go index c9c48fe4..0cec0938 100644 --- a/libpf/frametype_test.go +++ b/libpf/frametype_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/generics.go b/libpf/generics.go index 612dbff5..2a472f19 100644 --- a/libpf/generics.go +++ b/libpf/generics.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/hash/hash.go b/libpf/hash/hash.go index 96ba121a..a72a8322 100644 --- a/libpf/hash/hash.go +++ b/libpf/hash/hash.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package hash provides the same hash primitives as used by the eBPF. // This file should be kept in sync with the eBPF tracemgmt.h. diff --git a/libpf/hash/hash_test.go b/libpf/hash/hash_test.go index 05d4cd88..e72f4087 100644 --- a/libpf/hash/hash_test.go +++ b/libpf/hash/hash_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package hash diff --git a/libpf/interpretertype.go b/libpf/interpretertype.go index 1764a4be..48db6474 100644 --- a/libpf/interpretertype.go +++ b/libpf/interpretertype.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/libpf.go b/libpf/libpf.go index 50e9fd7a..42f0a95f 100644 --- a/libpf/libpf.go +++ b/libpf/libpf.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/libpf_test.go b/libpf/libpf_test.go index 1641c7ae..cc76f09c 100644 --- a/libpf/libpf_test.go +++ b/libpf/libpf_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/pfelf/addressmapper.go b/libpf/pfelf/addressmapper.go index ebe896b2..e7488d2b 100644 --- a/libpf/pfelf/addressmapper.go +++ b/libpf/pfelf/addressmapper.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // package pfelf implements functions for processing of ELF files and extracting data from // them. This file provides a cacheable file offset to virtual address mapping. diff --git a/libpf/pfelf/addressmapper_test.go b/libpf/pfelf/addressmapper_test.go index fe7a4fba..2d8bd7c5 100644 --- a/libpf/pfelf/addressmapper_test.go +++ b/libpf/pfelf/addressmapper_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package pfelf diff --git a/libpf/pfelf/elfopener.go b/libpf/pfelf/elfopener.go index 01bd0ab9..867d2590 100644 --- a/libpf/pfelf/elfopener.go +++ b/libpf/pfelf/elfopener.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // package pfelf implements functions for processing of ELF files and extracting data from // them. This file implements an interface to open ELF files from arbitrary location with name. diff --git a/libpf/pfelf/file.go b/libpf/pfelf/file.go index 3a227313..361b975e 100644 --- a/libpf/pfelf/file.go +++ b/libpf/pfelf/file.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // package pfelf implements functions for processing of ELF files and extracting data from // them. This file implements an independent ELF parser from debug.elf with different usage: diff --git a/libpf/pfelf/file_test.go b/libpf/pfelf/file_test.go index c4f4c871..94910e25 100644 --- a/libpf/pfelf/file_test.go +++ b/libpf/pfelf/file_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package pfelf diff --git a/libpf/pfelf/pfelf.go b/libpf/pfelf/pfelf.go index 56999b92..ea2e7976 100644 --- a/libpf/pfelf/pfelf.go +++ b/libpf/pfelf/pfelf.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // package pfelf implements functions for processing of ELF files and extracting data from // them. This file provides convenience functions for golang debug/elf standard library. diff --git a/libpf/pfelf/pfelf_test.go b/libpf/pfelf/pfelf_test.go index 52d71ab4..7260e542 100644 --- a/libpf/pfelf/pfelf_test.go +++ b/libpf/pfelf/pfelf_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package pfelf_test diff --git a/libpf/pfelf/reference.go b/libpf/pfelf/reference.go index b39c8730..29576504 100644 --- a/libpf/pfelf/reference.go +++ b/libpf/pfelf/reference.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // package pfelf implements functions for processing of ELF files and extracting data from // them. This file implements Reference which opens and caches a File on demand. diff --git a/libpf/readatbuf/readatbuf.go b/libpf/readatbuf/readatbuf.go index b6146549..bee070b3 100644 --- a/libpf/readatbuf/readatbuf.go +++ b/libpf/readatbuf/readatbuf.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // readatbuf providers wrappers adding caching to types that implement the `ReaderAt` interface. diff --git a/libpf/readatbuf/readatbuf_test.go b/libpf/readatbuf/readatbuf_test.go index a423d8c9..78b3ef1f 100644 --- a/libpf/readatbuf/readatbuf_test.go +++ b/libpf/readatbuf/readatbuf_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package readatbuf_test diff --git a/libpf/symbol.go b/libpf/symbol.go index b32bb367..38366007 100644 --- a/libpf/symbol.go +++ b/libpf/symbol.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/trace.go b/libpf/trace.go index 34034043..da17fd57 100644 --- a/libpf/trace.go +++ b/libpf/trace.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/tracehash.go b/libpf/tracehash.go index 164f436e..4b104def 100644 --- a/libpf/tracehash.go +++ b/libpf/tracehash.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/tracehash_test.go b/libpf/tracehash_test.go index 1d83a1ee..ed26df68 100644 --- a/libpf/tracehash_test.go +++ b/libpf/tracehash_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package libpf diff --git a/libpf/xsync/doc.go b/libpf/xsync/doc.go index a40e99f7..4bddded5 100644 --- a/libpf/xsync/doc.go +++ b/libpf/xsync/doc.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package xsync provides thin wrappers around locking primitives in an effort towards better // documenting the relationship between locks and the data they protect. diff --git a/libpf/xsync/once.go b/libpf/xsync/once.go index f53f5f52..61e28ddb 100644 --- a/libpf/xsync/once.go +++ b/libpf/xsync/once.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package xsync diff --git a/libpf/xsync/once_test.go b/libpf/xsync/once_test.go index c9a5f894..13a34cce 100644 --- a/libpf/xsync/once_test.go +++ b/libpf/xsync/once_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package xsync_test diff --git a/libpf/xsync/rwlock.go b/libpf/xsync/rwlock.go index e81f239d..a9453f1c 100644 --- a/libpf/xsync/rwlock.go +++ b/libpf/xsync/rwlock.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package xsync diff --git a/libpf/xsync/rwlock_test.go b/libpf/xsync/rwlock_test.go index 99de53d2..fd0c0293 100644 --- a/libpf/xsync/rwlock_test.go +++ b/libpf/xsync/rwlock_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package xsync_test diff --git a/lpm/lpm.go b/lpm/lpm.go index 41e29845..c70eb596 100644 --- a/lpm/lpm.go +++ b/lpm/lpm.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // lpm package provides helpers for calculating prefix lists from ranges package lpm diff --git a/lpm/lpm_test.go b/lpm/lpm_test.go index 1beef11d..546823a9 100644 --- a/lpm/lpm_test.go +++ b/lpm/lpm_test.go @@ -1,11 +1,8 @@ //go:build !integration // +build !integration -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package lpm diff --git a/maccess/maccess.go b/maccess/maccess.go index 0fe2921b..9a08da93 100644 --- a/maccess/maccess.go +++ b/maccess/maccess.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package maccess provides functionality to check if a certain bug in // copy_from_user_nofault is patched. diff --git a/maccess/maccess_amd64.go b/maccess/maccess_amd64.go index e3114ee4..7345debb 100644 --- a/maccess/maccess_amd64.go +++ b/maccess/maccess_amd64.go @@ -1,10 +1,7 @@ //go:build amd64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package maccess diff --git a/maccess/maccess_amd64_test.go b/maccess/maccess_amd64_test.go index a48ffe94..03b36ccf 100644 --- a/maccess/maccess_amd64_test.go +++ b/maccess/maccess_amd64_test.go @@ -1,10 +1,7 @@ //go:build amd64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package maccess diff --git a/maccess/maccess_arm64.go b/maccess/maccess_arm64.go index 32e3066a..e9155d23 100644 --- a/maccess/maccess_arm64.go +++ b/maccess/maccess_arm64.go @@ -1,10 +1,7 @@ //go:build arm64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package maccess diff --git a/maccess/maccess_arm64_test.go b/maccess/maccess_arm64_test.go index b9c5044e..7e4ff73c 100644 --- a/maccess/maccess_arm64_test.go +++ b/maccess/maccess_arm64_test.go @@ -1,10 +1,7 @@ //go:build arm64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package maccess diff --git a/main.go b/main.go index 6fa144a9..c12afc55 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main @@ -39,11 +36,11 @@ import ( ) // Short copyright / license text for eBPF code -var copyright = `Copyright (C) 2019-2024 Elasticsearch B.V. +var copyright = `Copyright The OpenTelemetry Authors. For the eBPF code loaded by Universal Profiling Agent into the kernel, -the following license applies (GPLv2 only). To request a copy of the -GPLv2 code, email us at profiling-feedback@elastic.co. +the following license applies (GPLv2 only). You can obtain a copy of the GPLv2 code at: +https://github.com/open-telemetry/opentelemetry-ebpf-profiler/tree/main/support/ebpf This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 only, diff --git a/metrics/doc.go b/metrics/doc.go index 8d916ea9..5efa244c 100644 --- a/metrics/doc.go +++ b/metrics/doc.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 /* Package metrics contains the code for receiving and reporting host metrics. diff --git a/metrics/genids/main.go b/metrics/genids/main.go index 7b92f30d..a0531d2b 100644 --- a/metrics/genids/main.go +++ b/metrics/genids/main.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/metrics/metrics.go b/metrics/metrics.go index f45f248e..731e918d 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package metrics diff --git a/metrics/metrics_test.go b/metrics/metrics_test.go index 7f8d48d5..38e2e549 100644 --- a/metrics/metrics_test.go +++ b/metrics/metrics_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package metrics diff --git a/metrics/types.go b/metrics/types.go index 1cae9994..0d6aed69 100644 --- a/metrics/types.go +++ b/metrics/types.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package metrics diff --git a/nativeunwind/elfunwindinfo/elfehframe.go b/nativeunwind/elfunwindinfo/elfehframe.go index 1ad659ed..729d8aa7 100644 --- a/nativeunwind/elfunwindinfo/elfehframe.go +++ b/nativeunwind/elfunwindinfo/elfehframe.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package elfunwindinfo diff --git a/nativeunwind/elfunwindinfo/elfehframe_aarch64.go b/nativeunwind/elfunwindinfo/elfehframe_aarch64.go index b97796ca..997fa9b0 100644 --- a/nativeunwind/elfunwindinfo/elfehframe_aarch64.go +++ b/nativeunwind/elfunwindinfo/elfehframe_aarch64.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package elfunwindinfo diff --git a/nativeunwind/elfunwindinfo/elfehframe_test.go b/nativeunwind/elfunwindinfo/elfehframe_test.go index 77cf0577..cf201fb7 100644 --- a/nativeunwind/elfunwindinfo/elfehframe_test.go +++ b/nativeunwind/elfunwindinfo/elfehframe_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package elfunwindinfo diff --git a/nativeunwind/elfunwindinfo/elfehframe_x86.go b/nativeunwind/elfunwindinfo/elfehframe_x86.go index e6377e73..fcd46a31 100644 --- a/nativeunwind/elfunwindinfo/elfehframe_x86.go +++ b/nativeunwind/elfunwindinfo/elfehframe_x86.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package elfunwindinfo diff --git a/nativeunwind/elfunwindinfo/elfgopclntab.go b/nativeunwind/elfunwindinfo/elfgopclntab.go index 337f1e87..f19719c0 100644 --- a/nativeunwind/elfunwindinfo/elfgopclntab.go +++ b/nativeunwind/elfunwindinfo/elfgopclntab.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // This implements Go 1.2+ .pclntab symbol parsing as defined // in http://golang.org/s/go12symtab. The Golang runtime implementation of diff --git a/nativeunwind/elfunwindinfo/elfgopclntab_test.go b/nativeunwind/elfunwindinfo/elfgopclntab_test.go index 4df3bcb8..3af18b2d 100644 --- a/nativeunwind/elfunwindinfo/elfgopclntab_test.go +++ b/nativeunwind/elfunwindinfo/elfgopclntab_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package elfunwindinfo diff --git a/nativeunwind/elfunwindinfo/stackdeltaextraction.go b/nativeunwind/elfunwindinfo/stackdeltaextraction.go index 5f7b4989..da19dd28 100644 --- a/nativeunwind/elfunwindinfo/stackdeltaextraction.go +++ b/nativeunwind/elfunwindinfo/stackdeltaextraction.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package elfunwindinfo diff --git a/nativeunwind/elfunwindinfo/stackdeltaextraction_test.go b/nativeunwind/elfunwindinfo/stackdeltaextraction_test.go index 77592024..2514ed9c 100644 --- a/nativeunwind/elfunwindinfo/stackdeltaextraction_test.go +++ b/nativeunwind/elfunwindinfo/stackdeltaextraction_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package elfunwindinfo diff --git a/nativeunwind/elfunwindinfo/stackdeltaprovider.go b/nativeunwind/elfunwindinfo/stackdeltaprovider.go index 88a4c3f5..1bc4cc4a 100644 --- a/nativeunwind/elfunwindinfo/stackdeltaprovider.go +++ b/nativeunwind/elfunwindinfo/stackdeltaprovider.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package elfunwindinfo diff --git a/nativeunwind/elfunwindinfo/testdata/helloworld.go b/nativeunwind/elfunwindinfo/testdata/helloworld.go index 4832f8bf..75910d5d 100644 --- a/nativeunwind/elfunwindinfo/testdata/helloworld.go +++ b/nativeunwind/elfunwindinfo/testdata/helloworld.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/nativeunwind/stackdeltaprovider.go b/nativeunwind/stackdeltaprovider.go index d0257e52..bf88cf09 100644 --- a/nativeunwind/stackdeltaprovider.go +++ b/nativeunwind/stackdeltaprovider.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package nativeunwind diff --git a/nativeunwind/stackdeltatypes/stackdeltatypes.go b/nativeunwind/stackdeltatypes/stackdeltatypes.go index 9535c50d..c00ea505 100644 --- a/nativeunwind/stackdeltatypes/stackdeltatypes.go +++ b/nativeunwind/stackdeltatypes/stackdeltatypes.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package stackdeltatypes provides types used to represent stack delta information as constructed // by `nativeunwind.GetIntervalStructures` This information is a post-processed form of the diff --git a/nopanicslicereader/nopanicslicereader.go b/nopanicslicereader/nopanicslicereader.go index b64426f2..01e235f5 100644 --- a/nopanicslicereader/nopanicslicereader.go +++ b/nopanicslicereader/nopanicslicereader.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // nopanicslicereader provides little convenience utilities to read "native" endian // values from a slice at given offset. Zeroes are returned on out of bounds access diff --git a/nopanicslicereader/nopanicslicereader_test.go b/nopanicslicereader/nopanicslicereader_test.go index a9d866ad..5bad0eaf 100644 --- a/nopanicslicereader/nopanicslicereader_test.go +++ b/nopanicslicereader/nopanicslicereader_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package nopanicslicereader diff --git a/pacmask/pacmask_arm64.go b/pacmask/pacmask_arm64.go index a975ad77..d7a3d1d5 100644 --- a/pacmask/pacmask_arm64.go +++ b/pacmask/pacmask_arm64.go @@ -1,10 +1,7 @@ //go:build arm64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package pacmask diff --git a/pacmask/pacmask_other.go b/pacmask/pacmask_other.go index f7166331..527c0b20 100644 --- a/pacmask/pacmask_other.go +++ b/pacmask/pacmask_other.go @@ -1,10 +1,7 @@ //go:build !arm64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package pacmask diff --git a/periodiccaller/periodiccaller.go b/periodiccaller/periodiccaller.go index d0e7a8d5..1f5a9738 100644 --- a/periodiccaller/periodiccaller.go +++ b/periodiccaller/periodiccaller.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package periodiccaller allows periodic calls of functions. package periodiccaller diff --git a/periodiccaller/periodiccaller_test.go b/periodiccaller/periodiccaller_test.go index 7cc1b377..a3abb224 100644 --- a/periodiccaller/periodiccaller_test.go +++ b/periodiccaller/periodiccaller_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package periodiccaller allows periodic calls of functions. package periodiccaller diff --git a/proc/proc.go b/proc/proc.go index e82d9b71..10edf6b6 100644 --- a/proc/proc.go +++ b/proc/proc.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package proc provides functionality for retrieving kallsyms, modules and // executable mappings via /proc. diff --git a/proc/proc_test.go b/proc/proc_test.go index 50289994..413afad6 100644 --- a/proc/proc_test.go +++ b/proc/proc_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package proc diff --git a/process/coredump.go b/process/coredump.go index fcfbd820..25a7fe4b 100644 --- a/process/coredump.go +++ b/process/coredump.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // This file implements Process interface to access coredump ELF files. diff --git a/process/debug.go b/process/debug.go index eedf5923..3087954b 100644 --- a/process/debug.go +++ b/process/debug.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package process diff --git a/process/debug_amd64.go b/process/debug_amd64.go index 9d976d8c..c6ca7762 100644 --- a/process/debug_amd64.go +++ b/process/debug_amd64.go @@ -1,10 +1,7 @@ //go:build amd64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package process diff --git a/process/debug_arm64.go b/process/debug_arm64.go index d61cc7cb..ed52cb07 100644 --- a/process/debug_arm64.go +++ b/process/debug_arm64.go @@ -1,10 +1,7 @@ //go:build arm64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package process diff --git a/process/process.go b/process/process.go index 9bf48065..b1a8fc43 100644 --- a/process/process.go +++ b/process/process.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package process diff --git a/process/process_test.go b/process/process_test.go index 5a9370ca..a2a43a8f 100644 --- a/process/process_test.go +++ b/process/process_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package process diff --git a/process/types.go b/process/types.go index 52d6fe5d..b3360615 100644 --- a/process/types.go +++ b/process/types.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // This file defines the interface to access a Process state. diff --git a/processmanager/ebpf/asyncupdate.go b/processmanager/ebpf/asyncupdate.go index e79ed772..1b24f7fb 100644 --- a/processmanager/ebpf/asyncupdate.go +++ b/processmanager/ebpf/asyncupdate.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package ebpf diff --git a/processmanager/ebpf/asyncupdate_integration_test.go b/processmanager/ebpf/asyncupdate_integration_test.go index 2b08d3a6..746c134e 100644 --- a/processmanager/ebpf/asyncupdate_integration_test.go +++ b/processmanager/ebpf/asyncupdate_integration_test.go @@ -1,10 +1,7 @@ //go:build integration && linux -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package ebpf diff --git a/processmanager/ebpf/ebpf.go b/processmanager/ebpf/ebpf.go index c53926c6..19cb54a7 100644 --- a/processmanager/ebpf/ebpf.go +++ b/processmanager/ebpf/ebpf.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package ebpf diff --git a/processmanager/ebpf/ebpf_integration_test.go b/processmanager/ebpf/ebpf_integration_test.go index 5f1cefc5..4517e393 100644 --- a/processmanager/ebpf/ebpf_integration_test.go +++ b/processmanager/ebpf/ebpf_integration_test.go @@ -1,10 +1,7 @@ //go:build integration && linux -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package ebpf diff --git a/processmanager/ebpf/ebpf_test.go b/processmanager/ebpf/ebpf_test.go index da5fc55d..d80a78fd 100644 --- a/processmanager/ebpf/ebpf_test.go +++ b/processmanager/ebpf/ebpf_test.go @@ -1,11 +1,8 @@ //go:build !integration // +build !integration -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package ebpf diff --git a/processmanager/ebpf/types.go b/processmanager/ebpf/types.go index 1656e457..f2610ede 100644 --- a/processmanager/ebpf/types.go +++ b/processmanager/ebpf/types.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package ebpf diff --git a/processmanager/execinfomanager/manager.go b/processmanager/execinfomanager/manager.go index c9d256a7..ffbc90d2 100644 --- a/processmanager/execinfomanager/manager.go +++ b/processmanager/execinfomanager/manager.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package execinfomanager diff --git a/processmanager/helpers.go b/processmanager/helpers.go index 17e19d6b..272af851 100644 --- a/processmanager/helpers.go +++ b/processmanager/helpers.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package processmanager diff --git a/processmanager/manager.go b/processmanager/manager.go index 47cd35b5..5a18225f 100644 --- a/processmanager/manager.go +++ b/processmanager/manager.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package processmanager manages the loading and unloading of information related to processes. package processmanager diff --git a/processmanager/manager_test.go b/processmanager/manager_test.go index fa7acb25..82ffa4b5 100644 --- a/processmanager/manager_test.go +++ b/processmanager/manager_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package processmanager diff --git a/processmanager/processinfo.go b/processmanager/processinfo.go index 9436b9f9..94b16530 100644 --- a/processmanager/processinfo.go +++ b/processmanager/processinfo.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package processmanager diff --git a/processmanager/synthdeltas_arm64.go b/processmanager/synthdeltas_arm64.go index ad213b29..141f160c 100644 --- a/processmanager/synthdeltas_arm64.go +++ b/processmanager/synthdeltas_arm64.go @@ -1,10 +1,7 @@ //go:build arm64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package processmanager diff --git a/processmanager/synthdeltas_other.go b/processmanager/synthdeltas_other.go index e421d77f..f7a0e308 100644 --- a/processmanager/synthdeltas_other.go +++ b/processmanager/synthdeltas_other.go @@ -1,10 +1,7 @@ //go:build !arm64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package processmanager diff --git a/processmanager/types.go b/processmanager/types.go index 284cd57a..01e6a86d 100644 --- a/processmanager/types.go +++ b/processmanager/types.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package processmanager diff --git a/remotememory/remotememory.go b/remotememory/remotememory.go index e6970c29..6ab4ee96 100644 --- a/remotememory/remotememory.go +++ b/remotememory/remotememory.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // remotememory provides access to memory space of a process. The ReaderAt // interface is used for the basic access, and various convenience functions are diff --git a/remotememory/remotememory_test.go b/remotememory/remotememory_test.go index c298655f..54d8297f 100644 --- a/remotememory/remotememory_test.go +++ b/remotememory/remotememory_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package remotememory diff --git a/reporter/config.go b/reporter/config.go index 550fb722..0cb038e0 100644 --- a/reporter/config.go +++ b/reporter/config.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package reporter diff --git a/reporter/fifo.go b/reporter/fifo.go index 7b2ced44..cb2d5144 100644 --- a/reporter/fifo.go +++ b/reporter/fifo.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package reporter diff --git a/reporter/fifo_test.go b/reporter/fifo_test.go index c756b198..7a4c7a80 100644 --- a/reporter/fifo_test.go +++ b/reporter/fifo_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package reporter diff --git a/reporter/iface.go b/reporter/iface.go index f0295f9b..cb96b9d9 100644 --- a/reporter/iface.go +++ b/reporter/iface.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package reporter diff --git a/reporter/metrics.go b/reporter/metrics.go index 9652d2a3..ee3cd37c 100644 --- a/reporter/metrics.go +++ b/reporter/metrics.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package reporter diff --git a/reporter/otlp_reporter.go b/reporter/otlp_reporter.go index 5a4a22b1..f23968e9 100644 --- a/reporter/otlp_reporter.go +++ b/reporter/otlp_reporter.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package reporter diff --git a/reporter/times.go b/reporter/times.go index 0dc10b9c..6a97d0a8 100644 --- a/reporter/times.go +++ b/reporter/times.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package reporter diff --git a/rlimit/rlimit.go b/rlimit/rlimit.go index a488f929..7ea7bba2 100644 --- a/rlimit/rlimit.go +++ b/rlimit/rlimit.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package rlimit diff --git a/stringutil/stringutil.go b/stringutil/stringutil.go index 873c49dd..163ed580 100644 --- a/stringutil/stringutil.go +++ b/stringutil/stringutil.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package stringutil diff --git a/stringutil/stringutil_test.go b/stringutil/stringutil_test.go index f9902f78..954c7489 100644 --- a/stringutil/stringutil_test.go +++ b/stringutil/stringutil_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package stringutil diff --git a/successfailurecounter/successfailurecounter.go b/successfailurecounter/successfailurecounter.go index a535b54d..b2118b14 100644 --- a/successfailurecounter/successfailurecounter.go +++ b/successfailurecounter/successfailurecounter.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // successfailurecounter provides a wrapper to atomically increment success or failure counters. // diff --git a/successfailurecounter/successfailurecounter_test.go b/successfailurecounter/successfailurecounter_test.go index e31f709c..0fa4cd59 100644 --- a/successfailurecounter/successfailurecounter_test.go +++ b/successfailurecounter/successfailurecounter_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package successfailurecounter diff --git a/support/ebpf_integration_test.go b/support/ebpf_integration_test.go index 993935b5..2bde0e23 100644 --- a/support/ebpf_integration_test.go +++ b/support/ebpf_integration_test.go @@ -1,10 +1,7 @@ //go:build integration && linux -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package support diff --git a/support/support.go b/support/support.go index fef6fc17..3dad27f4 100644 --- a/support/support.go +++ b/support/support.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package support diff --git a/support/support_amd64.go b/support/support_amd64.go index 228f50ad..dfb2895d 100644 --- a/support/support_amd64.go +++ b/support/support_amd64.go @@ -1,10 +1,7 @@ //go:build amd64 && !dummy -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package support diff --git a/support/support_arm64.go b/support/support_arm64.go index 07904444..a514a397 100644 --- a/support/support_arm64.go +++ b/support/support_arm64.go @@ -1,10 +1,7 @@ //go:build arm64 && !dummy -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package support diff --git a/support/support_dummy.go b/support/support_dummy.go index b4231519..5fdf4eb0 100644 --- a/support/support_dummy.go +++ b/support/support_dummy.go @@ -1,10 +1,7 @@ //go:build dummy -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package support diff --git a/support/types.go b/support/types.go index e99a1981..3a2e16a6 100644 --- a/support/types.go +++ b/support/types.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // support maps the definitions from headers in the C world into a nice go way package support diff --git a/testsupport/io.go b/testsupport/io.go index 9482a0d6..0b67b5e3 100644 --- a/testsupport/io.go +++ b/testsupport/io.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package testsupport diff --git a/testsupport/testfiles.go b/testsupport/testfiles.go index 88e25d76..3b93f789 100644 --- a/testsupport/testfiles.go +++ b/testsupport/testfiles.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package testsupport diff --git a/times/ktime.go b/times/ktime.go index daef6542..9bdf330f 100644 --- a/times/ktime.go +++ b/times/ktime.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package times diff --git a/times/times.go b/times/times.go index d7408191..f635fe33 100644 --- a/times/times.go +++ b/times/times.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package times diff --git a/tools/coredump/analyze.go b/tools/coredump/analyze.go index 905e9347..d225f136 100644 --- a/tools/coredump/analyze.go +++ b/tools/coredump/analyze.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/clean.go b/tools/coredump/clean.go index daa84023..3e7a7d6f 100644 --- a/tools/coredump/clean.go +++ b/tools/coredump/clean.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/coredump.go b/tools/coredump/coredump.go index 2f79f4b6..c9b5c3d0 100644 --- a/tools/coredump/coredump.go +++ b/tools/coredump/coredump.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/coredump_test.go b/tools/coredump/coredump_test.go index 30a45b6b..ef0c1e3b 100644 --- a/tools/coredump/coredump_test.go +++ b/tools/coredump/coredump_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/ebpfcode.go b/tools/coredump/ebpfcode.go index 54d272e6..854ba250 100644 --- a/tools/coredump/ebpfcode.go +++ b/tools/coredump/ebpfcode.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/ebpfcontext.go b/tools/coredump/ebpfcontext.go index 4040dd69..ed3bce4d 100644 --- a/tools/coredump/ebpfcontext.go +++ b/tools/coredump/ebpfcontext.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/ebpfhelpers.go b/tools/coredump/ebpfhelpers.go index 7c4fc42d..2b322d9c 100644 --- a/tools/coredump/ebpfhelpers.go +++ b/tools/coredump/ebpfhelpers.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/ebpfmaps.go b/tools/coredump/ebpfmaps.go index 21460868..6804547d 100644 --- a/tools/coredump/ebpfmaps.go +++ b/tools/coredump/ebpfmaps.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/exportmodule.go b/tools/coredump/exportmodule.go index 458256ca..71cdaac8 100644 --- a/tools/coredump/exportmodule.go +++ b/tools/coredump/exportmodule.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/gdb.go b/tools/coredump/gdb.go index 1f22fbb7..517bf669 100644 --- a/tools/coredump/gdb.go +++ b/tools/coredump/gdb.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/json.go b/tools/coredump/json.go index c9c3f9cb..cf053cfe 100644 --- a/tools/coredump/json.go +++ b/tools/coredump/json.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Defines the structures used in (de)serializing the coredump test cases. diff --git a/tools/coredump/main.go b/tools/coredump/main.go index af6947fc..8ac426b1 100644 --- a/tools/coredump/main.go +++ b/tools/coredump/main.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // coredump provides a tool for extracting stack traces from coredumps. // It also includes a test suite to unit test profiling agent components against diff --git a/tools/coredump/modulestore/id.go b/tools/coredump/modulestore/id.go index 6a519e9d..a728e480 100644 --- a/tools/coredump/modulestore/id.go +++ b/tools/coredump/modulestore/id.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package modulestore diff --git a/tools/coredump/modulestore/reader.go b/tools/coredump/modulestore/reader.go index 3c495393..aea276d7 100644 --- a/tools/coredump/modulestore/reader.go +++ b/tools/coredump/modulestore/reader.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package modulestore diff --git a/tools/coredump/modulestore/store.go b/tools/coredump/modulestore/store.go index a78e1ac6..5fa13c91 100644 --- a/tools/coredump/modulestore/store.go +++ b/tools/coredump/modulestore/store.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // The modulestore package implements `Store`, a storage for large binary files (modules). // For more information, please refer to the documentation on the `Store` type. diff --git a/tools/coredump/modulestore/util.go b/tools/coredump/modulestore/util.go index 70814e4b..aa0c5e02 100644 --- a/tools/coredump/modulestore/util.go +++ b/tools/coredump/modulestore/util.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package modulestore diff --git a/tools/coredump/new.go b/tools/coredump/new.go index 1324a0c7..288172e1 100644 --- a/tools/coredump/new.go +++ b/tools/coredump/new.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/rebase.go b/tools/coredump/rebase.go index 2a13133a..066ed2e4 100644 --- a/tools/coredump/rebase.go +++ b/tools/coredump/rebase.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/storecoredump.go b/tools/coredump/storecoredump.go index 0a759d51..43e50201 100644 --- a/tools/coredump/storecoredump.go +++ b/tools/coredump/storecoredump.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/testsources/go/hello.go b/tools/coredump/testsources/go/hello.go index 98b6898a..b444eedc 100644 --- a/tools/coredump/testsources/go/hello.go +++ b/tools/coredump/testsources/go/hello.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/coredump/upload.go b/tools/coredump/upload.go index 63d5cbfc..42837b83 100644 --- a/tools/coredump/upload.go +++ b/tools/coredump/upload.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/tools/errors-codegen/main.go b/tools/errors-codegen/main.go index 8f96d8e6..6109f12f 100644 --- a/tools/errors-codegen/main.go +++ b/tools/errors-codegen/main.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // errors-codegen generates the code containing the host agent error code enums. package main diff --git a/tools/stackdeltas/stackdeltas.go b/tools/stackdeltas/stackdeltas.go index d153645d..836aa80a 100644 --- a/tools/stackdeltas/stackdeltas.go +++ b/tools/stackdeltas/stackdeltas.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // A command-line tool to parse stack deltas from given ELF files. This tool // can generate statistics on number of stack deltas and different stack delta diff --git a/tools/zstpak/lib/zstpak.go b/tools/zstpak/lib/zstpak.go index d73a4fd3..4ee3491a 100644 --- a/tools/zstpak/lib/zstpak.go +++ b/tools/zstpak/lib/zstpak.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // zstpak implements reading and writing for an efficiently seekable compressed file format. The // efficient random access is achieved by compressing the data in small chunks and keeping an index diff --git a/tools/zstpak/lib/zstpak_test.go b/tools/zstpak/lib/zstpak_test.go index 42f9a5b7..4971a062 100644 --- a/tools/zstpak/lib/zstpak_test.go +++ b/tools/zstpak/lib/zstpak_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package zstpak_test diff --git a/tools/zstpak/main.go b/tools/zstpak/main.go index 7e9e2361..063a6854 100644 --- a/tools/zstpak/main.go +++ b/tools/zstpak/main.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Implements a command-line utility for compressing and decompressing zstpak files. diff --git a/tpbase/assembly_decode.go b/tpbase/assembly_decode.go index c8a260fa..668c269e 100644 --- a/tpbase/assembly_decode.go +++ b/tpbase/assembly_decode.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tpbase diff --git a/tpbase/assembly_decode_amd64.go b/tpbase/assembly_decode_amd64.go index b5e228f1..d75040eb 100644 --- a/tpbase/assembly_decode_amd64.go +++ b/tpbase/assembly_decode_amd64.go @@ -1,10 +1,7 @@ //go:build amd64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tpbase diff --git a/tpbase/assembly_decode_arm64.go b/tpbase/assembly_decode_arm64.go index 67383554..de0fbf78 100644 --- a/tpbase/assembly_decode_arm64.go +++ b/tpbase/assembly_decode_arm64.go @@ -1,10 +1,7 @@ //go:build arm64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tpbase diff --git a/tpbase/assembly_decode_test.go b/tpbase/assembly_decode_test.go index 15e88dfb..931b4874 100644 --- a/tpbase/assembly_decode_test.go +++ b/tpbase/assembly_decode_test.go @@ -1,10 +1,7 @@ //go:build amd64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tpbase diff --git a/tpbase/libc.go b/tpbase/libc.go index 5a801ce9..cab9cf3e 100644 --- a/tpbase/libc.go +++ b/tpbase/libc.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tpbase diff --git a/tpbase/libc_amd64.go b/tpbase/libc_amd64.go index 3536375c..0781e834 100644 --- a/tpbase/libc_amd64.go +++ b/tpbase/libc_amd64.go @@ -1,10 +1,7 @@ //go:build amd64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tpbase diff --git a/tpbase/libc_arm64.go b/tpbase/libc_arm64.go index 145f7b65..d436ad5e 100644 --- a/tpbase/libc_arm64.go +++ b/tpbase/libc_arm64.go @@ -1,10 +1,7 @@ //go:build arm64 -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tpbase diff --git a/tpbase/libc_test.go b/tpbase/libc_test.go index 60ee88e9..b073fd68 100644 --- a/tpbase/libc_test.go +++ b/tpbase/libc_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tpbase diff --git a/tpbase/tpbase.go b/tpbase/tpbase.go index a0f81c02..9a6ecc27 100644 --- a/tpbase/tpbase.go +++ b/tpbase/tpbase.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // tpbase implements disassembly analysis functions to extract needed data for // the Thread Pointer Base value handling. Code to analyze several Linux Kernel diff --git a/tracehandler/metrics.go b/tracehandler/metrics.go index 13f798a6..f71a8c89 100644 --- a/tracehandler/metrics.go +++ b/tracehandler/metrics.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tracehandler diff --git a/tracehandler/tracehandler.go b/tracehandler/tracehandler.go index 8f5aae02..4dd85296 100644 --- a/tracehandler/tracehandler.go +++ b/tracehandler/tracehandler.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package tracehandler converts raw BPF traces into the enriched user-mode // format and then forwards them to the reporter. diff --git a/tracehandler/tracehandler_test.go b/tracehandler/tracehandler_test.go index 3929e31d..01d478df 100644 --- a/tracehandler/tracehandler_test.go +++ b/tracehandler/tracehandler_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tracehandler_test diff --git a/tracer/ebpf_integration_test.go b/tracer/ebpf_integration_test.go index 0aa7869d..d949bf37 100644 --- a/tracer/ebpf_integration_test.go +++ b/tracer/ebpf_integration_test.go @@ -1,10 +1,7 @@ //go:build integration && linux -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tracer diff --git a/tracer/events.go b/tracer/events.go index 60d0e3c7..50cdfd75 100644 --- a/tracer/events.go +++ b/tracer/events.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tracer diff --git a/tracer/helper.go b/tracer/helper.go index baeea1a4..454e8ef6 100644 --- a/tracer/helper.go +++ b/tracer/helper.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tracer diff --git a/tracer/maccess.go b/tracer/maccess.go index c3929d65..68a00e47 100644 --- a/tracer/maccess.go +++ b/tracer/maccess.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tracer diff --git a/tracer/probe_linux.go b/tracer/probe_linux.go index 9fd2dce5..838a657b 100644 --- a/tracer/probe_linux.go +++ b/tracer/probe_linux.go @@ -1,11 +1,8 @@ //go:build linux // +build linux -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tracer diff --git a/tracer/probe_other.go b/tracer/probe_other.go index c1a0dfd7..f90b280c 100644 --- a/tracer/probe_other.go +++ b/tracer/probe_other.go @@ -1,11 +1,8 @@ //go:build !linux // +build !linux -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tracer diff --git a/tracer/systemconfig.go b/tracer/systemconfig.go index a54f039d..514f89a0 100644 --- a/tracer/systemconfig.go +++ b/tracer/systemconfig.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tracer diff --git a/tracer/tpbase.go b/tracer/tpbase.go index 43c98ae8..60fd0959 100644 --- a/tracer/tpbase.go +++ b/tracer/tpbase.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tracer diff --git a/tracer/tracepoints.go b/tracer/tracepoints.go index c48174c5..e663c852 100644 --- a/tracer/tracepoints.go +++ b/tracer/tracepoints.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package tracer diff --git a/tracer/tracer.go b/tracer/tracer.go index fcebf149..b23b0278 100644 --- a/tracer/tracer.go +++ b/tracer/tracer.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package tracer contains functionality for populating tracers. package tracer diff --git a/tracer/types/parse.go b/tracer/types/parse.go index cd1fe267..eb04c2c9 100644 --- a/tracer/types/parse.go +++ b/tracer/types/parse.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package types diff --git a/tracer/types/parse_test.go b/tracer/types/parse_test.go index f1cf5224..541643ae 100644 --- a/tracer/types/parse_test.go +++ b/tracer/types/parse_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package types diff --git a/traceutil/traceutil.go b/traceutil/traceutil.go index f563a59d..35847229 100644 --- a/traceutil/traceutil.go +++ b/traceutil/traceutil.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package traceutil diff --git a/traceutil/traceutil_test.go b/traceutil/traceutil_test.go index 2d87d446..b8d7d7f8 100644 --- a/traceutil/traceutil_test.go +++ b/traceutil/traceutil_test.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package traceutil diff --git a/util/util.go b/util/util.go index 613a6e81..ca489fc6 100644 --- a/util/util.go +++ b/util/util.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/vc/vc.go b/vc/vc.go index a6d11899..e0921e2c 100644 --- a/vc/vc.go +++ b/vc/vc.go @@ -1,8 +1,5 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Apache License 2.0. - * See the file "LICENSE" for details. - */ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 // Package vc provides buildtime information. package vc