Re: [PATCH] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again

2021-03-17 Thread Thomas Bogendoerfer
On Wed, Mar 17, 2021 at 11:18:48PM +0100, Daniel Borkmann wrote: > On 3/17/21 8:15 AM, Tiezhu Yang wrote: > > After commit 0ebeea8ca8a4 ("bpf: Restrict bpf_probe_read{, str}() only to > > archs where they work"), bpf_probe_read{, str}() functions were not longer > > available on MIPS, so there

Re: [PATCH] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again

2021-03-17 Thread Daniel Borkmann
On 3/17/21 8:15 AM, Tiezhu Yang wrote: After commit 0ebeea8ca8a4 ("bpf: Restrict bpf_probe_read{, str}() only to archs where they work"), bpf_probe_read{, str}() functions were not longer available on MIPS, so there exists some errors when running bpf program: root@linux:/home/loongson/bcc#

Re: [PATCH] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again

2021-03-17 Thread Sergei Shtylyov
On 17.03.2021 10:15, Tiezhu Yang wrote: After commit 0ebeea8ca8a4 ("bpf: Restrict bpf_probe_read{, str}() only to archs where they work"), bpf_probe_read{, str}() functions were not longer No longer. available on MIPS, so there exists some errors when running bpf program: Exist.

[PATCH] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again

2021-03-17 Thread Tiezhu Yang
After commit 0ebeea8ca8a4 ("bpf: Restrict bpf_probe_read{, str}() only to archs where they work"), bpf_probe_read{, str}() functions were not longer available on MIPS, so there exists some errors when running bpf program: root@linux:/home/loongson/bcc# python examples/tracing/task_switch.py bpf: