Skip to content

Instantly share code, notes, and snippets.

View vianpl's full-sized avatar

Nicolas Saenz Julienne vianpl

View GitHub Profile
@vianpl
vianpl / series-check.sh
Created October 8, 2020 10:53
Crappy backporting scripts
#!/bin/bash
check_series() {
[[ -z $1 ]] && { echo Commit range not provided; return 1; }
current_branch=$(git branch --show-current)
git log --pretty=format:'%h' --reverse $1 | while read patch; do
git checkout --quiet $patch
git log --pretty=oneline --abbrev-commit -1
./scripts/sequence-patch.sh --rapid 1>/dev/null || { echo NOK; break; }
@vianpl
vianpl / bpf_usb_error_injection.txt
Created November 14, 2018 16:45
eBPF USB atomic alloction error injection
USB ATOMIC ALLOCATION ERROR INJECTION
Prerequisites:
- Install bcc and bcc-tools, this patch https://github.com/iovisor/bcc/pull/2044
is needed
- The BCC tools are available at: /usr/share/bcc/tools
- Boot with the latest KOTD-debug kernel which has CONFIG_BPF_KPROBE_OVERRIDE
enabled
@vianpl
vianpl / qemu_kernel_dev.sh
Created June 5, 2017 12:40
Semiautomated qemu kernel development
#!/bin/bash
#
# Create qemu image to test kernel builds
#
# defines
MNT_PATH=~/qemu/
MNT=rootfs
QEMU_PATH=~/qemu
@vianpl
vianpl / .vimrc
Created April 6, 2017 16:20
vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Amir Salihefendic
" http://amix.dk - [email protected]
"
" Version:
" 5.0 - 29/05/12 15:43:36
"
" Blog_post:
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github