libbpf: Fix register in PT_REGS MIPS macros
authorJerry Crunchtime <jerry.c.t@web.de>
Fri, 31 Jul 2020 15:08:01 +0000 (17:08 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 31 Jul 2020 15:20:49 +0000 (17:20 +0200)
commit1acf8f90ea7ee59006d0474275922145ac291331
tree50962eb52b976def5e7846a393b1d8fc12307503
parentc64c9c282a9a7ec0515b725d5aaed68c32e403a4
libbpf: Fix register in PT_REGS MIPS macros

The o32, n32 and n64 calling conventions require the return
value to be stored in $v0 which maps to $2 register, i.e.,
the register 2.

Fixes: c1932cd ("bpf: Add MIPS support to samples/bpf.")
Signed-off-by: Jerry Crunchtime <jerry.c.t@web.de>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/43707d31-0210-e8f0-9226-1af140907641@web.de
tools/lib/bpf/bpf_tracing.h