This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if !defined(__x86_64__) | |
#error "This program only works for x86_64" | |
#endif | |
#define _GNU_SOURCE | |
#include <errno.h> | |
#include <limits.h> | |
#include <linux/futex.h> | |
#include <sched.h> | |
#include <signal.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: all clean | |
TARGET = test-hashmap | |
all: $(TARGET) | |
include common.mk | |
CFLAGS = -I. | |
CFLAGS += -O2 -g | |
CFLAGS += -std=gnu11 -Wall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj-m += proc_queue.o | |
obj-m += proc_sched.o | |
obj-m += proc_set.o | |
PWD := $(shell pwd) | |
KERNELDIR ?= /lib/modules/`uname -r`/build | |
PWD := $(shell pwd) | |
all: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/fs/Kconfig b/fs/Kconfig | |
index c229f82..515f76d 100644 | |
--- a/fs/Kconfig | |
+++ b/fs/Kconfig | |
@@ -4,6 +4,12 @@ | |
menu "File systems" | |
+config DCACHE_NO_RCU | |
+ def_bool y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = gcc | |
CFLAGS = -O2 -g -Wall -I. | |
CFLAGS += -fsanitize=thread | |
LDFLAGS = -fsanitize=thread | |
all: lfring | |
# Control the build verbosity | |
ifeq ("$(VERBOSE)","1") | |
Q := |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MODULENAME := vpoll | |
obj-m += $(MODULENAME).o | |
$(MODULENAME)-y += module.o | |
KERNELDIR ?= /lib/modules/`uname -r`/build | |
PWD := $(shell pwd) | |
all: | |
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules | |
gcc -Wall -o user user.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/module.h> | |
#include <linux/skbuff.h> | |
#include <net/cfg80211.h> | |
#include <linux/mutex.h> | |
#include <linux/workqueue.h> | |
#define WIPHY_NAME "owl" /* Our WireLess */ | |
#define NDEV_NAME WIPHY_NAME "%d" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* simrupt: A device that simulates interrupts */ | |
#include <linux/cdev.h> | |
#include <linux/circ_buf.h> | |
#include <linux/init.h> | |
#include <linux/interrupt.h> | |
#include <linux/kfifo.h> | |
#include <linux/module.h> | |
#include <linux/slab.h> | |
#include <linux/workqueue.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <inttypes.h> | |
#include <sys/time.h> | |
enum { | |
EV_READ = (1 << 0), | |
EV_WRITE = (1 << 1), | |
EV_TIMEOUT_ONESHOT = (1 << 2), | |
EV_TIMEOUT_PERIODIC = (1 << 3), | |
EV_SIGNAL = (1 << 4), | |
EV_CLOEXEC = (1 << 0), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Simple port forwarder */ | |
#define _GNU_SOURCE 1 | |
#include <assert.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <limits.h> | |
#include <netdb.h> | |
#include <stdbool.h> | |
#include <stdio.h> |
NewerOlder