remove unused files

This commit is contained in:
twoneis 2025-04-25 08:58:10 +02:00
parent e4b1275d14
commit 6302c9a02c
4 changed files with 1 additions and 36 deletions

View file

@ -9,6 +9,7 @@ CFLAGS += -g
CFLAGS += -O2 CFLAGS += -O2
CFLAGS += -Wall CFLAGS += -Wall
CFLAGS += -Wextra CFLAGS += -Wextra
CFLAGS += -D_FILE_OFFSET_BITS=64
run: leak.o run: leak.o
./leak.o ./leak.o

BIN
code/leak

Binary file not shown.

View file

@ -1,13 +0,0 @@
#define _GNU_SOURCE
#include <fcntl.h>
#include <unistd.h>
void
allocation_primitive(int fd[2])
{
pipe2(fd, O_NONBLOCK);
fcntl(fd[0], F_SETPIPE_SZ, 8192);
char buffer[0x100] = { 0 };
write(fd[1], buffer, 8);
}

View file

@ -1,23 +0,0 @@
#include <stdlib.h>
inline size_t
rdtsc_begin(void)
{
size_t a, d;
asm volatile("mfence");
asm volatile("rdtsc" : "=a"(a), "=d"(d));
a = (d << 32) | a;
asm volatile("lfence");
return a;
}
inline size_t
rdtsc_end(void)
{
size_t a, d;
asm volatile("lfence");
asm volatile("rdtsc" : "=a"(a), "=d"(d));
a = (d << 32) | a;
asm volatile("mfence");
return a;
}