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

test_trampoline_count.c (460B)


      1// SPDX-License-Identifier: GPL-2.0
      2#include <linux/bpf.h>
      3#include <bpf/bpf_helpers.h>
      4#include <bpf/bpf_tracing.h>
      5
      6SEC("fentry/bpf_modify_return_test")
      7int BPF_PROG(fentry_test, int a, int *b)
      8{
      9	return 0;
     10}
     11
     12SEC("fmod_ret/bpf_modify_return_test")
     13int BPF_PROG(fmod_ret_test, int a, int *b, int ret)
     14{
     15	return 0;
     16}
     17
     18SEC("fexit/bpf_modify_return_test")
     19int BPF_PROG(fexit_test, int a, int *b, int ret)
     20{
     21	return 0;
     22}
     23
     24char _license[] SEC("license") = "GPL";