" Vim syntax file " Language: Berkeley Packet Filter " Maintainer: Daniel Borkmann " Latest Revision: 08/16/2011 " " In order to make syntax highlighting for BPFs work in vim, copy this file " to ~/.vim/syntax/ and activate it in vim by entering: " " :set syntax=bpf " " If you want to automatically load the BPF syntax highlighting for *.bpf " files create the ~/.vim/filetype.vim with the following content: " " my filetype file " if exists("did_load_filetypes") " finish " endif " " augroup filetypedetect " au! BufRead,BufNewFile *.bpf setfiletype bpf " augroup END " if exists("b:current_syntax") finish endif syn keyword bpfTodo contained TODO FIXME XXX NOTE syn keyword bpfKeywords ldb ldh ld ldi ldx ldxi ldxb st stx jmp ja jeq jneq jne skipwhite syn keyword bpfKeywords jlt jle jgt jge jset add sub mul div mod neg and or xor skipwhite syn keyword bpfKeywords lsh rsh ret tax txa skipwhite syn match bpfLabel /[a-zA-Z0-9_]\+/ syn match bpfSpChar /[:,#\[\]\(\)+*&]\?/ contains=bpfNumber,bpfLabel syn match bpfNumber /\(0[xX]\x\+\|\d\+\)/ syn match bpfComment ";.*$" contains=bpfTodo hi def link bpfTodo Todo hi def link bpfComment Comment hi def link bpfKeywords Keyword hi def link bpfLabel Type hi def link bpfNumber Number hi def link bpfSpChar Special let b:current_syntax = "bpf" t type='submit' value='switch'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2016-10-17 12:07:35 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-10-17 14:44:32 +0200
commit4d062487f3431f124e3a2420c0da0b7a2388dc80 (patch)
tree27c2b79eccb7acb301000c9fdbe7aedff9a56254
parenta790634544f5f98364b0aafe9d7e669810d96360 (diff)
s390/disassambler: use pr_cont where appropriate
Just like for dumpstack use pr_cont instead of simple printk calls to fix the output when disassembling a piece of code. Before: [ 0.840627] Krnl Code: 000000000017d1c6: a77400f7 brc 7,17d3b4 [ 0.840630] 000000000017d1ca: 92015000 mvi 0(%r5),1 [ 0.840634] #000000000017d1ce: a7f40001 brc 15,17d1d0 After: [ 0.831792] Krnl Code: 000000000017d13e: a77400f7 brc 7,17d32c 000000000017d142: 92015000 mvi 0(%r5),1 #000000000017d146: a7f40001 brc 15,17d148 Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat