Lines Matching +full:data +full:- +full:lines
3 # KVM Flight Recorder - ring buffer tracing script
9 # This script provides a command-line interface to kvm ftrace and is designed
10 # to be used as a flight recorder that is always running. To start in-memory
13 # sudo kvm_flightrecorder start 8192 # 8 MB per-cpu ring buffers
15 # The per-cpu ring buffer size can be given in KB as an optional argument to
33 # fixed-size in-memory trace.
43 def write_file(path, data): argument
44 open(path, 'wb').write(data)
65 lines = True
66 while lines:
67 lines = tracefile.readlines(64 * 1024)
68 sys.stdout.writelines(lines)
89 if cmd == '--version':
95 print('mount -t debugfs none /sys/kernel/debug')
108 print('Invalid per-cpu trace buffer size in KB')
111 print('Per-CPU ring buffer size set to %d KB' % buffer_size_kb)