Lines Matching +full:com +full:- +full:seq
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright Amazon.com Inc. or its affiliates. */
12 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino()
19 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino()
20 bpf_probe_read_kernel(&ino, sizeof(ino), &inode->i_ino); in sock_i_ino()
27 struct unix_sock *unix_sk = ctx->unix_sk; in dump_unix()
29 struct seq_file *seq; in dump_unix() local
35 seq = ctx->meta->seq; in dump_unix()
36 seq_num = ctx->meta->seq_num; in dump_unix()
38 BPF_SEQ_PRINTF(seq, "Num RefCount Protocol Flags Type St Inode Path\n"); in dump_unix()
40 BPF_SEQ_PRINTF(seq, "%pK: %08X %08X %08X %04X %02X %8lu", in dump_unix()
42 sk->sk_refcnt.refs.counter, in dump_unix()
44 sk->sk_state == TCP_LISTEN ? __SO_ACCEPTCON : 0, in dump_unix()
45 sk->sk_type, in dump_unix()
46 sk->sk_socket ? in dump_unix()
47 (sk->sk_state == TCP_ESTABLISHED ? SS_CONNECTED : SS_UNCONNECTED) : in dump_unix()
48 (sk->sk_state == TCP_ESTABLISHED ? SS_CONNECTING : SS_DISCONNECTING), in dump_unix()
51 if (unix_sk->addr) { in dump_unix()
52 if (unix_sk->addr->name->sun_path[0]) { in dump_unix()
53 BPF_SEQ_PRINTF(seq, " %s", unix_sk->addr->name->sun_path); in dump_unix()
61 len = unix_sk->addr->len - sizeof(short); in dump_unix()
63 BPF_SEQ_PRINTF(seq, " @"); in dump_unix()
70 BPF_SEQ_PRINTF(seq, "%c", in dump_unix()
71 unix_sk->addr->name->sun_path[i] ?: in dump_unix()
77 BPF_SEQ_PRINTF(seq, "\n"); in dump_unix()