allocate spaces for the trailing NUL
@@ -869,7 +869,7 @@ if sys.argv[1] == "quic":
# provider h2o:
u.enable_probe(probe="send_response_header", fn_name="trace_h2o__send_response_header")
- cflags = ["-DMAX_EVENT_TYPE_LEN=%s" % max(map(lambda probe: len("%s__%s" % (probe.provider, probe.name)), u.enumerate_probes()))]
+ cflags = ["-DMAX_EVENT_TYPE_LEN=%s" % (1+max(map(lambda probe: len("%s__%s" % (probe.provider, probe.name)), u.enumerate_probes())))]
b = BPF(text=quic_bpf, usdt_contexts=[u], cflags=cflags)
else:
u.enable_probe(probe="receive_request", fn_name="trace_receive_req")
