diff --git a/interpreter/php/decode_amd64.c b/interpreter/php/decode_amd64.c index c207d084..d58a861b 100644 --- a/interpreter/php/decode_amd64.c +++ b/interpreter/php/decode_amd64.c @@ -1,3 +1,9 @@ +/* + * 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. + */ + //go:build amd64 #include #include "decode_amd64.h" diff --git a/interpreter/php/decode_amd64.h b/interpreter/php/decode_amd64.h index ad5ad0e1..5a0c1b8b 100644 --- a/interpreter/php/decode_amd64.h +++ b/interpreter/php/decode_amd64.h @@ -1,3 +1,9 @@ +/* + * 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. + */ + //go:build amd64 #ifndef __INCLUDED_PHP_DECODE_X86_64__ #define __INCLUDED_PHP_DECODE_X86_64__ diff --git a/interpreter/python/decode_amd64.c b/interpreter/python/decode_amd64.c index f834fa01..fe88b551 100644 --- a/interpreter/python/decode_amd64.c +++ b/interpreter/python/decode_amd64.c @@ -1,3 +1,9 @@ +/* + * 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. + */ + //go:build amd64 #include diff --git a/interpreter/python/decode_amd64.h b/interpreter/python/decode_amd64.h index f5ad7ca4..bda06a4b 100644 --- a/interpreter/python/decode_amd64.h +++ b/interpreter/python/decode_amd64.h @@ -1,3 +1,9 @@ +/* + * 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. + */ + //go:build amd64 #ifndef __PYTHON_DECODE_X86_64__ diff --git a/libpf/pfelf/testdata/fixed-address.c b/libpf/pfelf/testdata/fixed-address.c index ba6acb8c..18ee130a 100644 --- a/libpf/pfelf/testdata/fixed-address.c +++ b/libpf/pfelf/testdata/fixed-address.c @@ -1,3 +1,9 @@ +/* + * 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. + */ + __attribute__((section(".coffee_section"))) int function_at_fixed_address(void) { return 0; diff --git a/libpf/pfelf/testdata/test.c b/libpf/pfelf/testdata/test.c index fc2b6e0b..156d92c3 100644 --- a/libpf/pfelf/testdata/test.c +++ b/libpf/pfelf/testdata/test.c @@ -1,3 +1,9 @@ +/* + * 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. + */ + #ifndef LINUX_VERSION #define LINUX_VERSION "" #endif diff --git a/reporter/testdata/test.c b/reporter/testdata/test.c index 43ba4dc4..34356f9f 100644 --- a/reporter/testdata/test.c +++ b/reporter/testdata/test.c @@ -1,3 +1,9 @@ +/* + * 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. + */ + #include int main(int argc, char *argv[]) { diff --git a/tpbase/fsbase_decode_amd64.c b/tpbase/fsbase_decode_amd64.c index 3a589597..bd713675 100644 --- a/tpbase/fsbase_decode_amd64.c +++ b/tpbase/fsbase_decode_amd64.c @@ -1,3 +1,9 @@ +/* + * 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. + */ + //go:build amd64 #include diff --git a/tpbase/fsbase_decode_amd64.h b/tpbase/fsbase_decode_amd64.h index 5208cf2c..2a488ec9 100644 --- a/tpbase/fsbase_decode_amd64.h +++ b/tpbase/fsbase_decode_amd64.h @@ -1,3 +1,9 @@ +/* + * 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. + */ + //go:build amd64 #ifndef __FSBASE_DECODE_X86_64__ diff --git a/tpbase/libc_decode_amd64.c b/tpbase/libc_decode_amd64.c index c1d88a4c..e1248d01 100644 --- a/tpbase/libc_decode_amd64.c +++ b/tpbase/libc_decode_amd64.c @@ -1,3 +1,9 @@ +/* + * 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. + */ + //go:build amd64 #include diff --git a/tpbase/libc_decode_amd64.h b/tpbase/libc_decode_amd64.h index 3d7452b5..5dab6847 100644 --- a/tpbase/libc_decode_amd64.h +++ b/tpbase/libc_decode_amd64.h @@ -1,3 +1,9 @@ +/* + * 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. + */ + //go:build amd64 #ifndef LIBC_DECODE_X86_64 diff --git a/utils/coredump/testsources/c/brokenstack.c b/utils/coredump/testsources/c/brokenstack.c index 2e71da79..6afd560e 100644 --- a/utils/coredump/testsources/c/brokenstack.c +++ b/utils/coredump/testsources/c/brokenstack.c @@ -1,3 +1,9 @@ +/* + * 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. + */ + // Example application that intentionally breaks its stack. // // cc -O2 -g -o brokenstack brokenstack.c diff --git a/utils/coredump/testsources/c/sig.c b/utils/coredump/testsources/c/sig.c index 5a5f4e2e..f39a4311 100644 --- a/utils/coredump/testsources/c/sig.c +++ b/utils/coredump/testsources/c/sig.c @@ -1,3 +1,9 @@ +/* + * 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. + */ + #include #include #include diff --git a/utils/coredump/testsources/c/stackalign.c b/utils/coredump/testsources/c/stackalign.c index ea514f27..c6118110 100644 --- a/utils/coredump/testsources/c/stackalign.c +++ b/utils/coredump/testsources/c/stackalign.c @@ -1,3 +1,9 @@ +/* + * 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. + */ + // gcc -O3 -fomit-frame-pointer -mavx -ftree-vectorize stackalign.c -o stackalign #include