Linux Perf
bpf-prologue.h File Reference
#include <linux/compiler.h>
#include <linux/filter.h>
#include "probe-event.h"
#include <errno.h>
Include dependency graph for bpf-prologue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BPF_PROLOGUE_MAX_ARGS   3
 
#define BPF_PROLOGUE_START_ARG_REG   BPF_REG_3
 
#define BPF_PROLOGUE_FETCH_RESULT_REG   BPF_REG_2
 

Functions

static int bpf__gen_prologue (struct probe_trace_arg *args __maybe_unused, int nargs __maybe_unused, struct bpf_insn *new_prog __maybe_unused, size_t *new_cnt, size_t cnt_space __maybe_unused)
 

Macro Definition Documentation

◆ BPF_PROLOGUE_FETCH_RESULT_REG

#define BPF_PROLOGUE_FETCH_RESULT_REG   BPF_REG_2

Definition at line 15 of file bpf-prologue.h.

◆ BPF_PROLOGUE_MAX_ARGS

#define BPF_PROLOGUE_MAX_ARGS   3

Definition at line 13 of file bpf-prologue.h.

◆ BPF_PROLOGUE_START_ARG_REG

#define BPF_PROLOGUE_START_ARG_REG   BPF_REG_3

Definition at line 14 of file bpf-prologue.h.

Function Documentation

◆ bpf__gen_prologue()

static int bpf__gen_prologue ( struct probe_trace_arg *args  __maybe_unused,
int nargs  __maybe_unused,
struct bpf_insn *new_prog  __maybe_unused,
size_t *  new_cnt,
size_t cnt_space  __maybe_unused 
)
inlinestatic

Definition at line 25 of file bpf-prologue.h.