h2olog: label the line with varnishlog semantics
@@ -75,9 +75,9 @@ int trace_receive_req_header(struct pt_regs *ctx) {
def print_req_line(line):
if line.http_version:
v = "HTTP/%d.%d" % (line.http_version / 256, line.http_version % 256)
- print("%u %u: %s" % (line.conn_id, line.req_id, v))
+ print("%u %u RxProtocol %s" % (line.conn_id, line.req_id, v))
else:
- print("%u %u: %s %s" % (line.conn_id, line.req_id, line.header_name, line.header_value))
+ print("%u %u RxHeader %s %s" % (line.conn_id, line.req_id, line.header_name, line.header_value))
def handle_req_line(cpu, data, size):
print_req_line(b["reqbuf"].event(data))
