Re: [RFC PATCH v2 15/15] samples/bpf: Add sample for no-debuginfo case

From: Alexei Starovoitov
Date: Tue May 26 2015 - 13:53:59 EST


On 5/24/15 1:28 AM, He Kuang wrote:
+SEC("generic_perform_write=generic_perform_write $params")
+int NODE_generic_perform_write(struct pt_regs *ctx,
+ void *file,
+ void *i,
+ void *pos)

instead:
SEC("generic_perform_write(void*, void*, void*)")
int prog(struct pt_regs *ctx, void *fild, void *i, void *pos)

would be arch-independent.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/