Skip to content

Commit c36ea72

Browse files
committed
license: Add preamble to non-eBPF C/include files
The eBPF code in this repository is licensed under GPL.
1 parent 527745e commit c36ea72

File tree

14 files changed

+84
-0
lines changed

14 files changed

+84
-0
lines changed

interpreter/php/decode_amd64.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
//go:build amd64
28
#include <Zydis/Zydis.h>
39
#include "decode_amd64.h"

interpreter/php/decode_amd64.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
//go:build amd64
28
#ifndef __INCLUDED_PHP_DECODE_X86_64__
39
#define __INCLUDED_PHP_DECODE_X86_64__

interpreter/python/decode_amd64.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
//go:build amd64
28

39
#include <Zydis/Zydis.h>

interpreter/python/decode_amd64.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
//go:build amd64
28

39
#ifndef __PYTHON_DECODE_X86_64__

libpf/pfelf/testdata/fixed-address.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
__attribute__((section(".coffee_section")))
28
int function_at_fixed_address(void) {
39
return 0;

libpf/pfelf/testdata/test.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
#ifndef LINUX_VERSION
28
#define LINUX_VERSION ""
39
#endif

reporter/testdata/test.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
#include <unistd.h>
28

39
int main(int argc, char *argv[]) {

tpbase/fsbase_decode_amd64.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
//go:build amd64
28

39
#include <Zydis/Zydis.h>

tpbase/fsbase_decode_amd64.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
//go:build amd64
28

39
#ifndef __FSBASE_DECODE_X86_64__

tpbase/libc_decode_amd64.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
//go:build amd64
28

39
#include <Zydis/Zydis.h>

tpbase/libc_decode_amd64.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
//go:build amd64
28

39
#ifndef LIBC_DECODE_X86_64

utils/coredump/testsources/c/brokenstack.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
// Example application that intentionally breaks its stack.
28
//
39
// cc -O2 -g -o brokenstack brokenstack.c

utils/coredump/testsources/c/sig.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
#include<stdio.h>
28
#include<signal.h>
39
#include<unistd.h>

utils/coredump/testsources/c/stackalign.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Apache License 2.0.
4+
* See the file "LICENSE" for details.
5+
*/
6+
17
// gcc -O3 -fomit-frame-pointer -mavx -ftree-vectorize stackalign.c -o stackalign
28

39
#include <unistd.h>

0 commit comments

Comments
 (0)