elastic / otel-profiling-agent

The production-scale datacenter profiler (C/C++, Go, Rust, Python, Java, NodeJS, .NET, PHP, Ruby, Perl, ...)
Apache License 2.0
2.16k stars 229 forks source link

license: Add preamble to non-eBPF C/include files #2

Closed christos68k closed 2 months ago

christos68k commented 2 months ago

To clarify for readers: The eBPF C code in this repository is GPL licensed (and not affected by this PR). We have additional non-eBPF code however, and that is licensed under Apache2.

athre0z commented 2 months ago

This preamble is in conflict with the README that states that the BPF code is licensed under GPL:

https://github.com/elastic/otel-profiling-agent/blob/527745e865b14dee5402de3830e4f80230719e41/README.md?plain=1#L502-L503

The license export here is also still set to GPL:

https://github.com/elastic/otel-profiling-agent/blob/527745e865b14dee5402de3830e4f80230719e41/support/ebpf/interpreter_dispatcher.ebpf.c#L188

We should update these two in the same wash.