Skip to content

Commit

Permalink
wip: testing the trigger
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
  • Loading branch information
leogr committed Mar 27, 2024
1 parent da8e8cb commit 658fd5a
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions userspace/libscap/engine/modern_bpf/modern_bpf_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ limitations under the License.

#include <stdint.h>



#define MODERN_BPF_ENGINE "modern_bpf"
#define DEFAULT_CPU_FOR_EACH_BUFFER 1

Expand All @@ -26,9 +28,17 @@ extern "C"

struct scap_modern_bpf_engine_params
{
uint16_t cpus_for_each_buffer; ///< [EXPERIMENTAL] We will allocate a ring buffer every `cpus_for_each_buffer` CPUs. `0` is a special value and means a single ring buffer shared between all the CPUs.
bool allocate_online_only; ///< [EXPERIMENTAL] Allocate ring buffers only for online CPUs. The number of ring buffers allocated changes according to the `cpus_for_each_buffer` param. Please note: this buffer will be mapped twice both kernel and userspace-side, so pay attention to its size.
unsigned long buffer_bytes_dim; ///< Dimension of a ring buffer in bytes. The number of ring buffers allocated changes according to the `cpus_for_each_buffer` param. Please note: this buffer will be mapped twice both kernel and userspace-side, so pay attention to its size.
uint16_t cpus_for_each_buffer; ///< [EXPERIMENTAL] We will allocate a ring buffer every
///< `cpus_for_each_buffer` CPUs. `0` is a special value and means a
///< single ring buffer shared between all the CPUs.
bool allocate_online_only; ///< [EXPERIMENTAL] Allocate ring buffers only for online CPUs. The number of
///< ring buffers allocated changes according to the `cpus_for_each_buffer`
///< param. Please note: this buffer will be mapped twice both kernel and
///< userspace-side, so pay attention to its size.
unsigned long buffer_bytes_dim; ///< Dimension of a ring buffer in bytes. The number of ring buffers
///< allocated changes according to the `cpus_for_each_buffer` param.
///< Please note: this buffer will be mapped twice both kernel and
///< userspace-side, so pay attention to its size.
};

#ifdef __cplusplus
Expand Down

0 comments on commit 658fd5a

Please sign in to comment.