• Home
  • Raw
  • Download

Lines Matching refs:event

534     event = ctypes.cast(data, ctypes.POINTER(TCPIPV4Evt)).contents
539 start_ts = event.ts_ns
541 print("%-14d" % (event.ts_ns - start_ts), end="")
543 print("%-9.3f" % ((event.ts_ns - start_ts) / 1000000000.0), end="")
544 if event.type == 1:
546 elif event.type == 2:
548 elif event.type == 3:
559 (event.pid, event.comm.decode('utf-8', 'replace'),
560 event.ip,
561 inet_ntop(AF_INET, pack("I", event.saddr)),
562 inet_ntop(AF_INET, pack("I", event.daddr)),
563 event.sport,
564 event.dport), end="")
566 print(" %-8d" % event.netns)
572 event = ctypes.cast(data, ctypes.POINTER(TCPIPV6Evt)).contents
576 start_ts = event.ts_ns
578 print("%-14d" % (event.ts_ns - start_ts), end="")
580 print("%-9.3f" % ((event.ts_ns - start_ts) / 1000000000.0), end="")
581 if event.type == 1:
583 elif event.type == 2:
585 elif event.type == 3:
596 (event.pid, event.comm.decode('utf-8', 'replace'),
597 event.ip,
598 "[" + inet_ntop(AF_INET6, event.saddr) + "]",
599 "[" + inet_ntop(AF_INET6, event.daddr) + "]",
600 event.sport,
601 event.dport), end="")
603 print(" %-8d" % event.netns)
625 b.attach_kprobe(event="tcp_v4_connect", fn_name="trace_connect_v4_entry")
626 b.attach_kretprobe(event="tcp_v4_connect", fn_name="trace_connect_v4_return")
627 b.attach_kprobe(event="tcp_v6_connect", fn_name="trace_connect_v6_entry")
628 b.attach_kretprobe(event="tcp_v6_connect", fn_name="trace_connect_v6_return")
629 b.attach_kprobe(event="tcp_set_state", fn_name="trace_tcp_set_state_entry")
630 b.attach_kprobe(event="tcp_close", fn_name="trace_close_entry")
631 b.attach_kretprobe(event="inet_csk_accept", fn_name="trace_accept_return")