Hi Sam:
    The rdtsc function used to get system time more precision which hardware
system base on the Intel / AMD Arch.
    And this form of code  " *asm volatile("rdtsc":"=A" (a)); " not support
ARM arch.*
*    And in the PF_RING kernel code, there have some preprocesser to use the
rdtsc but the user space code does not use it, so if you compile the PF_RING
kernel code successfully I think you can comment this line too. *
*    Good luck.*
*
*

> Hi Luca,
>
> I comment the line about “asm” in pfring.c, and now the rdtsc() function
> becomes:
> "
> unsigned long long rdtsc()
> {
>     unsigned long long a;
>     *// asm volatile("rdtsc":"=A" (a));*
>     return(a);
> }
> "
> It can pass the compile.
> I have searched other *.h && *.c files, and there is no place to invoke
> rdtsc().  So I guess it doesn't matter to comment this line.  But I still
> need your confirmation about my guess.  Thanks very much!
>
> BR.
> Sam
>
>
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to