Skip to content

Instantly share code, notes, and snippets.

View mitake's full-sized avatar
💭
I may be slow to respond.

Hitoshi Mitake mitake

💭
I may be slow to respond.
  • 10:59 (UTC +09:00)
View GitHub Profile
/* Simple wrapper to allow a program to perf itself.
* Copyright Rusty Russell, Blockstream 2015.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

Reference Getting Started with runC

mkdir runc
cd runc
docker pull busybox
docker export $(docker create busybox) > busybox.tar
mkdir rootfs
tar -C rootfs -xf busybox.tar
runc spec > container.json
sudo runc
@leverich
leverich / patch-3.5.0-bvt1
Last active March 3, 2023 06:18
Borrowed Virtual Time patch against Linux 3.5.0
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 4a1f493..ef258ef 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1179,6 +1179,10 @@ struct sched_entity {
u64 exec_start;
u64 sum_exec_runtime;
u64 vruntime;
+#ifdef CONFIG_CFS_BVT
+ u64 effective_vruntime;
@ossdev-somewhere
ossdev-somewhere / xsel.el
Last active July 3, 2023 11:58
Emacs-nox <-> X11 clipboard transfer.
; You need "xsel" program.
(defun x-paste ()
"insert text on X11's clipboard to current buffer."
(interactive)
(insert-string (shell-command-to-string "xsel -b")))
(defun x-copy ()
"copy text on local kill-ring to X11's clipboard."
(interactive)