ebpf: update Makefile to add header dependencies#618
ebpf: update Makefile to add header dependencies#618fabled merged 6 commits intoopen-telemetry:mainfrom
Conversation
|
Suggestions for discussion: A simpler "better be on the safe side of things" would be |
I am fine with the suggested solution as well. Couple of nits on the proposed:
|
|
Yeah, feel free to amend, just quickly tested it here. We could additionally remove |
|
👍 I will wait for some more votes in favor of the wildcard implementation and then implement it |
What's the issue with the original proposal? It's using the dependencies that the compiler dumps, which will always be accurate. Also it's the standard way we capture C dependencies in Makefiles. I'd rather avoid inefficiencies, even if they're now small. |
|
I think I'd prefer the generated dependencies as well. |
Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co>
|
should we remove |
It's committed into the repository so probably not. What would removing it gain us, if the json changes it will be automatically re-generated (and then changes should be committed to repo). Otherwise, no need to spend time generating it. |
It didn't work in the past. |
Introducing |
Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co>
Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co>
Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co>
I noticed when I change a header, the ebpf program is not recompiled and requires a manual clean.
This change should force recompilation if any dependent header changed