Skip to content

Commit

Permalink
Add placeholder and conditional compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelroquetto committed Feb 14, 2025
1 parent 1b37d09 commit b8d1e12
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 2 deletions.
File renamed without changes.
2 changes: 2 additions & 0 deletions bpf/debug_log.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build beyla_bpf_ignore

#include "vmlinux.h"
#include "bpf_helpers.h"
#include "bpf_dbg.h"
Expand Down
1 change: 1 addition & 0 deletions bpf/flows.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build beyla_bpf_ignore
// Copyright Red Hat / IBM
// Copyright Grafana Labs
//
Expand Down
1 change: 1 addition & 0 deletions bpf/flows_sock.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build beyla_bpf_ignore
// Copyright Red Hat / IBM
// Copyright Grafana Labs
//
Expand Down
3 changes: 2 additions & 1 deletion bpf/generic_tracer.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//go:build beyla_bpf_ignore
#include "k_tracer.h"
#include "http_ssl.h"
#include "nodejs.h"

char __license[] SEC("license") = "Dual MIT/GPL";
char __license[] SEC("license") = "Dual MIT/GPL";
3 changes: 2 additions & 1 deletion bpf/go_tracer.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build beyla_bpf_ignore
// Copyright Grafana Labs
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -18,4 +19,4 @@
#include "go_grpc.h"
#include "go_redis.h"
#include "go_kafka_go.h"
#include "go_sarama.h"
#include "go_sarama.h"
1 change: 1 addition & 0 deletions bpf/gpuevent.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build beyla_bpf_ignore
// Copyright (c) Meta Platforms, Inc. and affiliates.
// Copyright Grafana Labs
//
Expand Down
3 changes: 3 additions & 0 deletions bpf/headers/placeholder.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//go:build beyla_bpf

package headers
5 changes: 5 additions & 0 deletions bpf/placeholder.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//go:build beyla_bpf

package bpf

import _ "github.com/grafana/beyla/bpf/headers"
1 change: 1 addition & 0 deletions bpf/tc_http_tp.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build beyla_bpf_ignore
#include <vmlinux.h>

#include <bpf_endian.h>
Expand Down
1 change: 1 addition & 0 deletions bpf/tc_tracer.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build beyla_bpf_ignore
#include "vmlinux.h"
#include "bpf_helpers.h"
#include "bpf_dbg.h"
Expand Down
1 change: 1 addition & 0 deletions bpf/tracer_common.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build beyla_bpf_ignore
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Expand Down
1 change: 1 addition & 0 deletions bpf/watch_helper.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build beyla_bpf_ignore
#include "vmlinux.h"
#include "bpf_helpers.h"
#include "bpf_tracing.h"
Expand Down

0 comments on commit b8d1e12

Please # to comment.