Is the Trex aarch64 compatible right now?

190 views
Skip to first unread message

Zhao, Bing

unread,
Mar 12, 2018, 1:36:55 AM3/12/18
to trex...@googlegroups.com
Hi,
From the logs, "Update sljit to add aarch64 compat", it seems that the
trex could be run on the aarch64 platform. But when I try to build the
project, some error occurs. And the file "sljitNativeARM_64.c" is
missing. I check the github
https://github.com/cisco-system-traffic-generator/trex-core/tree/master/external_libs/bpf/bpfjit
and the folder is updated 8 months ago.
So do I miss something? I add a new item of "Issues" on the github. But
I couldn't access the google group. So I have to send the email here,
sorry to bother you.

Many thanks in advance.

BR. Bing

Itay Marom

unread,
Mar 12, 2018, 3:49:13 AM3/12/18
to Zhao, Bing, TRex Traffic Generator
Hi,

Currently BPF-JIT is only working for x86.

regular BPF will work for aarch.

you can simply remove the flag:

/* use BPFJIT */
#define TREX_USE_BPFJIT



I'll add this flag to x86 flags and not to aarch in the next version.

Thanks,
Itay





--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/c0e5b622-18b4-e102-7499-b3711b2f4a64%40163.com.
For more options, visit https://groups.google.com/d/optout.



--
Itay Marom

Itay Marom

unread,
Mar 25, 2018, 11:19:47 AM3/25/18
to Zhao, Bing, TRex Traffic Generator
Hi,

I've committed a fix to allow Aarch64 to use software BPF for now.

In current state, you will be able to build Aarch64 target (not cross compile but native only) and connect from a x86 client.


The limitations currently are:
1.  no Aarch64 client
2.  no native based BPF (BPFJIT)


Both can be resolved but will require a bit more work.

See the attached diff.

Itay



--
Itay Marom
aarch64.patch

Bing

unread,
Apr 9, 2018, 4:14:03 AM4/9/18
to Itay Marom, TRex Traffic Generator
Hi Itay,
Many thanks for your information. I worked at some other tasks last month and now back to check this. I will try the latest code. Last time I try to build this, I also found in the script, the source files need to be comments out.

 809 '''
 810 bpf = SrcGroups([
 811                 bpf_src,
 812                 bpfjit_src]);
 813 '''
 814 
 815 bpf = SrcGroups([
 816                 bpf_src
 817                 ]);

While with GCC6 and GCC7, some compiling warnings will be treated as errors on aarch64 platform. I will give some detailed information when available or try to fix it.

Thanks 
Reply all
Reply to author
Forward
0 new messages