h2olog: define a struct to represent a req line
from bcc import BPF, USDT
import getopt, sys
+bpf = """
+#define MAX_STR_LEN 128
+
+/*
+ * "req_line_t" represents an individual log line for a given request.
+ * This structure is pushed into the BPF ring buffer for later collection
+ * by the user-space script (Python part of this script).
+ */
+struct req_line_t {
+ u64 conn_id;
+ u64 req_id;
+ u32 http_version;
+ u64 header_name_len;
+ u64 header_value_len;
+ char header_name[MAX_STR_LEN];
+ char header_value[MAX_STR_LEN];
+};
+"""
+
try:
h2o_pid = 0
opts, args = getopt.getopt(sys.argv[1:], 'p:')
