mcst-linux-kernel/patches-2024.06.26/pf_ring-8.4.0/0003-support-e2k.patch

13 lines
528 B
Diff

diff -ruaN pf_ring-8.4.0/userland/examples/pfutils.c my_pf_ring-8.4.0/userland/examples/pfutils.c
--- pf_ring-8.4.0/userland/examples/pfutils.c 2023-01-31 12:18:21.000000000 +0300
+++ my_pf_ring-8.4.0/userland/examples/pfutils.c 2024-04-17 17:18:39.825738763 +0300
@@ -535,7 +535,7 @@
static __inline__ ticks getticks(void)
{
-#ifdef __ARM_ARCH
+#if defined(__ARM_ARCH) || defined(__e2k__)
/*
Not supported
See https://stackoverflow.com/questions/40454157/is-there-an-equivalent-instruction-to-rdtsc-in-arm