Skip to content
Snippets Groups Projects
Commit ca73d13b authored by Luis Gerhorst's avatar Luis Gerhorst
Browse files

bpftask: syscall_wrapper: TODOs

parent 13dc7489
No related branches found
No related tags found
No related merge requests found
......@@ -228,6 +228,10 @@ extern long __ia32_sys_ni_syscall(const struct pt_regs *regs);
#define BPF_TASK_SYS(x, name, ...) BPF_TASK_SYS_##x(name)
/* TODO: cast args to avoid warnings when passing argX to __do_sys(...)
*
* TODO: Instead of passing the array size we could pass one more arg directly
* if we define a special bpf type (long array of length 1 / 2). */
#define BPF_TASK_SYS_1(name) \
BPF_CALL_5(bpf_task_sys##name, u64, arg1, u64, arg2, u64, arg3, u64 *, arg_tail, u64, size) \
{ \
......@@ -268,7 +272,6 @@ extern long __ia32_sys_ni_syscall(const struct pt_regs *regs);
return __do_sys##name(arg1, arg2, arg3, arg_tail[0], arg_tail[1], arg_tail[2]); \
}
/* TODO: declare args in prototype */
#define __SYSCALL_DEFINEx(x, name, ...) \
static long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \
static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment