Skip to content

Instantly share code, notes, and snippets.

View pfactum's full-sized avatar

Oleksandr Natalenko pfactum

View GitHub Profile
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Power Button
/dev/input/event1: Sleep Button
/dev/input/event2: Lid Switch
/dev/input/event3: Power Button
/dev/input/event4: Video Bus
/dev/input/event5: AT Translated Set 2 keyboard
/dev/input/event6: HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event7: HDA Intel PCH Headphone
// ==UserScript==
// @name LORLocalDate
// @description Converts Moscow time to local time
// @namespace http://www.linux.org.ru/*
// @namespace https://www.linux.org.ru/*
// @include http://www.linux.org.ru/*
// @include https://www.linux.org.ru/*
// @author Oleksandr Natalenko aka post-factum
// @license Creative Commons Attribution 3.0 Unported
// @version 0.0.4
/*
libpfrng — CPU jitter based random number generator
© 2013–2014, Oleksandr Natalenko aka post-factum <oleksandr@natalenko.name>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
diff --git a/libpfrng.c b/libpfrng.c
index f41c0c2..8fccc1a 100644
--- a/libpfrng.c
+++ b/libpfrng.c
@@ -56,9 +56,6 @@ pthread_mutex_t fast_lock;
/// Handles per-thread previous timings
static struct timespec *time_prev;
-/// Handles pre-calculated weights for bits rolling
-static double rolling_weights_table[UINT64_SIZE];
#!/usr/bin/env bash
index="0"
sum1="0"
sum2="0"
sum1n="2080"
sum2n="4.74389090370576902576"
echo -n "" >test.out
diff --git a/libpfrng.c b/libpfrng.c
index f41c0c2..2cfefe2 100644
--- a/libpfrng.c
+++ b/libpfrng.c
@@ -56,8 +56,40 @@ pthread_mutex_t fast_lock;
/// Handles per-thread previous timings
static struct timespec *time_prev;
-/// Handles pre-calculated weights for bits rolling
-static double rolling_weights_table[UINT64_SIZE];
diff --git a/fs/proc/meminfo.c b/fs/proc/meminfo.c
index 136e548..e69cb2f 100644
--- a/fs/proc/meminfo.c
+++ b/fs/proc/meminfo.c
@@ -121,6 +121,9 @@ static int meminfo_proc_show(struct seq_file *m, void *v)
"SUnreclaim: %8lu kB\n"
"KernelStack: %8lu kB\n"
"PageTables: %8lu kB\n"
+#ifdef CONFIG_PKSM
+ "KsmSharingPages:%8lu kB\n"
mm/built-in.o: In function `handle_mm_fault':
(.text+0x2e9ab): undefined reference to `ksm_might_need_to_copy'
mm/built-in.o: In function `rmap_walk':
(.text+0x39ed1): undefined reference to `rmap_walk_ksm'
mm/built-in.o: In function `unuse_mm':
swapfile.c:(.text+0x42a7d): undefined reference to `ksm_might_need_to_copy'
mm/built-in.o: In function `migrate_page_copy':
(.text+0x58f87): undefined reference to `ksm_migrate_page'
Makefile:827: recipe for target 'vmlinux' failed
This file has been truncated, but you can view the full file.
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 30a8ad0d..06d87ee 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -3428,6 +3428,9 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
HIGHMEM regardless of setting
of CONFIG_HIGHPTE.
+ uuid_debug= (Boolean) whether to enable debugging of TuxOnIce's
+ uuid support.
diff --git a/Documentation/scheduler/sched-BFS.txt b/Documentation/scheduler/sched-BFS.txt
new file mode 100644
index 0000000..c10d956
--- /dev/null
+++ b/Documentation/scheduler/sched-BFS.txt
@@ -0,0 +1,347 @@
+BFS - The Brain Fuck Scheduler by Con Kolivas.
+
+Goals.
+