Skip to content

Instantly share code, notes, and snippets.

@glandium
glandium / Makefile
Last active February 17, 2024 20:24
Linux kernel module for Zen workaround for rr
obj-m = zen_workaround.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
Processor : Snapdragon (TM) 850 @ 2.96 GHz
processor : 0
BogoMIPS : 1766
processor : 1
BogoMIPS : 1766
processor : 2
BogoMIPS : 1766
; ModuleID = 'testor0-fd1dd8ef827b12d7953eeea42d54ad03.rs'
source_filename = "testor0-fd1dd8ef827b12d7953eeea42d54ad03.rs"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%"core::option::Option<usize>" = type { [16 x i8] }
%"unwind::libunwind::_Unwind_Exception" = type { [0 x i8], i64, [0 x i8], void (i32, %"unwind::libunwind::_Unwind_Exception"*)*, [0 x i8], [6 x i64], [0 x i8] }
%"unwind::libunwind::_Unwind_Context" = type { [0 x i8] }
@str.2 = internal constant [9 x i8] c"85af342b1"
; ModuleID = 'testor0-9c9d9e3b33a06dc7e3cd9cbd93f9c9d.rs'
source_filename = "testor0-9c9d9e3b33a06dc7e3cd9cbd93f9c9d.rs"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%"core::option::Option<usize>" = type { [2 x i64] }
%"core::result::Result<usize, core::option::NoneError>" = type { [2 x i64] }
%"unwind::libunwind::_Unwind_Exception" = type { [0 x i64], i64, [0 x i64], void (i32, %"unwind::libunwind::_Unwind_Exception"*)*, [0 x i64], [6 x i64], [0 x i64] }
%"unwind::libunwind::_Unwind_Context" = type { [0 x i8] }
; ModuleID = 'testor0-fd2be913766e7b4440b7b64d08cf3c37.rs'
source_filename = "testor0-fd2be913766e7b4440b7b64d08cf3c37.rs"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%"core::option::Option<usize>" = type { [16 x i8] }
%"unwind::libunwind::_Unwind_Exception" = type { [0 x i8], i64, [0 x i8], void (i32, %"unwind::libunwind::_Unwind_Exception"*)*, [0 x i8], [6 x i64], [0 x i8] }
%"unwind::libunwind::_Unwind_Context" = type { [0 x i8] }
@str.2 = internal constant [9 x i8] c"85af342b1"
; ModuleID = 'test0-8787f43e282added376259c1adb08b80.rs'
source_filename = "test0-8787f43e282added376259c1adb08b80.rs"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%"unwind::libunwind::_Unwind_Exception" = type { [0 x i8], i64, [0 x i8], void (i32, %"unwind::libunwind::_Unwind_Exception"*)*, [0 x i8], [6 x i64], [0 x i8] }
%"unwind::libunwind::_Unwind_Context" = type { [0 x i8] }
@str.0 = internal constant [43 x i8] c"called `Option::unwrap()` on a `None` value"
@str.1 = internal constant [31 x i8] c"/checkout/src/libcore/option.rs"
; ModuleID = 'test0-8787f43e282added376259c1adb08b80.rs'
source_filename = "test0-8787f43e282added376259c1adb08b80.rs"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%str_slice = type { i8*, i64 }
%"unwind::libunwind::_Unwind_Exception" = type { i64, [0 x i8], void (i32, %"unwind::libunwind::_Unwind_Exception"*)*, [0 x i8], [6 x i64], [0 x i8] }
%"unwind::libunwind::_Unwind_Context" = type {}
@str.0 = internal constant [43 x i8] c"called `Option::unwrap()` on a `None` value"
import atexit
import os
import shutil
import subprocess
from cinnabar.git import (
FastImport,
Git,
git_dir,
GitProcess,
sha1path,