cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

btf_ctx_access.c (320B)


      1{
      2	"btf_ctx_access accept",
      3	.insns = {
      4	BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, 8),	/* load 2nd argument value (int pointer) */
      5	BPF_MOV64_IMM(BPF_REG_0, 0),
      6	BPF_EXIT_INSN(),
      7	},
      8	.result = ACCEPT,
      9	.prog_type = BPF_PROG_TYPE_TRACING,
     10	.expected_attach_type = BPF_TRACE_FENTRY,
     11	.kfunc = "bpf_modify_return_test",
     12},