linux/tools/testing/selftests/bpf/progs/test_subprogs_unused.c
<<
>>
Prefs
   1#include "vmlinux.h"
   2#include <bpf/bpf_helpers.h>
   3#include <bpf/bpf_core_read.h>
   4
   5const char LICENSE[] SEC("license") = "GPL";
   6
   7__attribute__((unused)) __noinline int unused1(int x)
   8{
   9        return x + 1;
  10}
  11
  12static __attribute__((unused)) __noinline int unused2(int x)
  13{
  14        return x + 2;
  15}
  16
  17SEC("raw_tp/sys_enter")
  18int main_prog(void *ctx)
  19{
  20        return 0;
  21}
  22