Add kernel dmesg grammar and test