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
#!/usr/bin/python3 | |
from errno import EINVAL | |
from sys import argv | |
from sys import exit | |
from sys import stdout | |
from sys import stderr | |
import getopt | |
import fcntl, socket, struct |
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
#!/bin/bash | |
dev=/dev/test/scratch1 | |
log_dev=/dev/test/scratch2 | |
table="0 $(blockdev --getsz $log_dev) log-writes $dev $log_dev" | |
dm_dev=/dev/mapper/log | |
mnt=/mnt/btrfs | |
replay_log=/home/adam/log-writes/replay-log | |
fsstress=/home/adam/xfstests-dev/ltp/fsstress |
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
#!/bin/bash | |
dev=/dev/test/test | |
mnt=/mnt/btrfs | |
dmesg -C | |
umount $mnt &> /dev/null | |
umount $dev &> /dev/null |
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
#!/bin/bash | |
dev=/dev/test/test | |
mnt=/mnt/btrfs | |
dmesg -C | |
umount $mnt &> /dev/null | |
umount $dev &> /dev/null |
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
#!/bin/bash | |
dev=/dev/test/test | |
mnt=/mnt/btrfs | |
_fail() | |
{ | |
echo "!!! FAILED: $@ !!!" | |
exit 1 | |
} |
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
" Vim-lsp + key mapping | |
if executable('clangd') | |
au User lsp_setup call lsp#register_server({ | |
\ 'name': 'clangd', | |
\ 'cmd': {server_info->['clangd', '-compile-commands-dir=/home/adam/compile_commands.d/']}, | |
\ 'whitelist': ['c', 'cpp', 'objc', 'objcpp'], | |
\ }) | |
endif | |
function! s:ShouldComplete() |
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
#!/bin/bash | |
dev=/dev/test/test | |
mnt=/mnt/btrfs | |
trace_result="/home/adam/trace" | |
_fail() | |
{ | |
echo "!!! FAILED: $@ !!!" | |
exit 1 |
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
#!/usr/bin/python2 | |
# @lint-avoid-python-3-compatibility-imports | |
from __future__ import print_function | |
from bcc import BPF | |
text_bpf = ''' | |
#include <uapi/linux/ptrace.h> | |
#define CSUM_TREE_BLOCK 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
#!/usr/bin/python2 | |
# @lint-avoid-python-3-compatibility-imports | |
from __future__ import print_function | |
from bcc import BPF | |
from sys import stderr | |
text_bpf = ''' | |
#include <uapi/linux/ptrace.h> | |
#define FSID_SIZE 16 |
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
Sat 16 Nov 2019 08:10:28 PM CST:["lsp#register_server","server registered","clangd"] | |
Sat 16 Nov 2019 08:10:28 PM CST:["vim-lsp signs enabled"] | |
Sat 16 Nov 2019 08:10:28 PM CST:["vim-lsp highlighting enabled (textprop)"] | |
Sat 16 Nov 2019 08:10:28 PM CST:["s:on_text_document_did_open()",1,"c","/home/adam/btrfs/btrfs-progs","file:///home/adam/btrfs/btrfs-progs/disk-io.c"] | |
Sat 16 Nov 2019 08:10:28 PM CST:[{"response":{"data":{"__data__":"vim-lsp","lsp_id":1,"server_name":"clangd"},"message":"started lsp server successfully"}}] | |
Sat 16 Nov 2019 08:10:28 PM CST:["--->",1,"clangd",{"method":"initialize","params":{"rootUri":"file:///home/adam/btrfs/btrfs-progs","capabilities":{"workspace":{"configuration":true,"applyEdit":true},"textDocument":{"foldingRange":{"lineFoldingOnly":true},"documentSymbol":{"symbolKind":{"valueSet":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,1,2,3,4,5,6,7,8,9]}},"definition":{"linkSupport":true},"completion":{"completionItem":{"documentationFormat":["plaintext"]},"completionItemKind":{ |
OlderNewer