[PATCH bpf-next v1] ARC: Add eBPF JIT support

2024-02-13 Thread Shahab Vahedi
From: Shahab Vahedi This will add eBPF JIT support to the 32-bit ARCv2 processors. The implementation is qualified by running the BPF tests on a Synopsys HSDK board with "ARC HS38 v2.1c at 500 MHz" as the 4-core CPU. Deployment and structure The related codes are added t

Re: [PATCH bpf-next v1] ARC: Add eBPF JIT support

2024-02-13 Thread Alexei Starovoitov
On Tue, Feb 13, 2024 at 5:20 AM Shahab Vahedi wrote: > > From: Shahab Vahedi > > This will add eBPF JIT support to the 32-bit ARCv2 processors. The > implementation is qualified by running the BPF tests on a Synopsys HSDK > board with "ARC HS38 v2.1c at 500 MHz" as the 4-core CPU. ... > Signed-of

Re: [PATCH bpf-next v1] ARC: Add eBPF JIT support

2024-02-13 Thread Vineet Gupta
+CC Bjorn On 2/13/24 18:39, Alexei Starovoitov wrote: > On Tue, Feb 13, 2024 at 5:20 AM Shahab Vahedi wrote: >> From: Shahab Vahedi >> >> This will add eBPF JIT support to the 32-bit ARCv2 processors. The >> implementation is qualified by running the BPF tests on a Synopsys HSDK >> board with "A

Re: [PATCH bpf-next v1] ARC: Add eBPF JIT support

2024-02-14 Thread Shahab Vahedi
On 2/14/24 03:39, Alexei Starovoitov wrote: > On Tue, Feb 13, 2024 at 5:20 AM Shahab Vahedi wrote: > > Could you share performance numbers interpreter vs JITed ? I see noticeable improvements on every selected test. To list a few: ---8<-- test_bpf: #0 TAX jited:0 86

Re: [PATCH bpf-next v1] ARC: Add eBPF JIT support

2024-02-26 Thread Shahab Vahedi
Hello list, I know this is not a small patch, but could someone skim over it? If there's anything that I can do to make the review process easier, please let me know. I already intend to change the "commit message" in the following ways: - Fix a typo: interpretor -> interpreter - Mentioning the

Re: [PATCH bpf-next v1] ARC: Add eBPF JIT support

2024-03-03 Thread Björn Töpel
Shahab, Shahab Vahedi writes: > From: Shahab Vahedi > > This will add eBPF JIT support to the 32-bit ARCv2 processors. The > implementation is qualified by running the BPF tests on a Synopsys HSDK > board with "ARC HS38 v2.1c at 500 MHz" as the 4-core CPU. Cool! I did quick review, mosty focu

Re: [PATCH bpf-next v1] ARC: Add eBPF JIT support

2024-03-05 Thread Shahab Vahedi
Hi Björn, Thank you very much for your inputs. Please find my remarks below. Björn Töpel writes: > Shahab Vahedi writes: > > What's the easiest way to test test this w/o ARC HW? Is there a qemu > port avaiable? Yes, there is a (downstream) port available on GitHub [1]. If one is interested,

Re: [PATCH bpf-next v1] ARC: Add eBPF JIT support

2024-03-06 Thread Björn Töpel
Shahab Vahedi writes: > Hi Björn, > > Thank you very much for your inputs. Please find my remarks below. > > Björn Töpel writes: > >> Shahab Vahedi writes: >> >> What's the easiest way to test test this w/o ARC HW? Is there a qemu >> port avaiable? > > Yes, there is a (downstream) port availab

Re: [PATCH bpf-next v1] ARC: Add eBPF JIT support

2024-04-30 Thread Shahab Vahedi
Shahab Vahedi writes: > > Björn Töpel writes: >> >> Please try to avoid static inline in the C-files. The compiler usually >> knows better. > > I will replace them with "static" then. I have tried [1] this and the test execution time took a performance hit of 35%. Therefore, I have not included