/* * Copyright (C) 2015, He Kuang * Copyright (C) 2015, Huawei Inc. */ #ifndef __BPF_PROLOGUE_H #define __BPF_PROLOGUE_H #include #include #include "probe-event.h" #define BPF_PROLOGUE_MAX_ARGS 3 #define BPF_PROLOGUE_START_ARG_REG BPF_REG_3 #define BPF_PROLOGUE_FETCH_RESULT_REG BPF_REG_2 #ifdef HAVE_BPF_PROLOGUE int bpf__gen_prologue(struct probe_trace_arg *args, int nargs, struct bpf_insn *new_prog, size_t *new_cnt, size_t cnt_space); #else static inline 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) { if (!new_cnt) return -EINVAL; *new_cnt = 0; return -ENOTSUP; } #endif #endif /* __BPF_PROLOGUE_H */
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-12-11 11:17:54 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-11 11:17:54 -0800
commit69973b830859bc6529a7a0468ba0d80ee5117826 (patch)
tree5f11fe15ed9d9a3ab9c92242030e54b73ecdce45 /sound/soc/codecs/da7210.c
parent2e4333c14de06a333783d6812cf3c4998f78b0c8 (diff)
Linux 4.9
Diffstat (limited to 'sound/soc/codecs/da7210.c')