|
@@ -13,7 +13,6 @@
|
|
|
#include <string.h>
|
|
|
#include <errno.h>
|
|
|
#include <limits.h>
|
|
|
-#include <byteswap.h>
|
|
|
#include <linux/kernel.h>
|
|
|
#include <linux/log2.h>
|
|
|
#include <linux/time64.h>
|
|
@@ -372,27 +371,6 @@ int perf_event_paranoid(void)
|
|
|
return value;
|
|
|
}
|
|
|
|
|
|
-void mem_bswap_32(void *src, int byte_size)
|
|
|
-{
|
|
|
- u32 *m = src;
|
|
|
- while (byte_size > 0) {
|
|
|
- *m = bswap_32(*m);
|
|
|
- byte_size -= sizeof(u32);
|
|
|
- ++m;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-void mem_bswap_64(void *src, int byte_size)
|
|
|
-{
|
|
|
- u64 *m = src;
|
|
|
-
|
|
|
- while (byte_size > 0) {
|
|
|
- *m = bswap_64(*m);
|
|
|
- byte_size -= sizeof(u64);
|
|
|
- ++m;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
bool find_process(const char *name)
|
|
|
{
|
|
|
size_t len = strlen(name);
|