Subject: Re: Created benchmarks modules for page_pool

From: Jesper Dangaard Brouer <[email-masked]>
Date: Tue, 28 Jan 2020 19:41:36 +0100

On Tue, 28 Jan 2020 17:22:47 +0100
Matteo Croce <[email-masked]> wrote:

> On Wed, Jan 22, 2020 at 1:09 PM Jesper Dangaard Brouer
> <[email-masked]> wrote:
> > On Wed, 22 Jan 2020 12:42:05 +0200  
> > > Interesting, i'll try having a look at the code and maybe run then on
> > > my armv8 board.  
> >
> > That will be great, but we/you have to fixup the Intel specific ASM
> > instructions in time_bench.c (which we already discussed on IRC).
> >  
> 
> What does it need to work on arm64? Replace RDPMC with something generic?

Replacing the RDTSC. Hoping Ilias will fix it for ARM ;-) 

You can also fix yourself via using get_cycles() include <linux/timex.h>.
If the ARCH doesn't have support it will just return 0.

Have you tried it out on your normal x86/Intel box?
Hint:
 https://prototype-kernel.readthedocs.io/en/latest/prototype-kernel/build-process.html
-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer