diff options
| author | Martin KaFai Lau <[email protected]> | 2019-02-09 23:22:21 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2019-02-10 19:46:17 -0800 |
| commit | aa65d6960a98fc15a96ce361b26e9fd55c9bccc5 (patch) | |
| tree | 17f5dda00f78b37e67a25e64bcce5e19c256cab0 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 46f8bc92758c6259bcf945e9216098661c1587cd (diff) | |
bpf: Add state, dst_ip4, dst_ip6 and dst_port to bpf_sock
This patch adds "state", "dst_ip4", "dst_ip6" and "dst_port" to the
bpf_sock. The userspace has already been using "state",
e.g. inet_diag (ss -t) and getsockopt(TCP_INFO).
This patch also allows narrow load on the following existing fields:
"family", "type", "protocol" and "src_port". Unlike IP address,
the load offset is resticted to the first byte for them but it
can be relaxed later if there is a use case.
This patch also folds __sock_filter_check_size() into
bpf_sock_is_valid_access() since it is not called
by any where else. All bpf_sock checking is in
one place.
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions