summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGeliang Tang <tanggeliang@kylinos.cn>2024-03-01 21:18:36 +0300
committerDavid S. Miller <davem@davemloft.net>2024-03-04 16:07:46 +0300
commitd32c8fb1c881478e4af8e6ac3c922d35c8ba3ca8 (patch)
tree68351234e541cbcfdd63a046c0f3441aee07f55d /tools/perf/scripts/python/export-to-postgresql.py
parent06afe09091ee69dc7ab058b4be9917ae59cc81e5 (diff)
downloadlinux-d32c8fb1c881478e4af8e6ac3c922d35c8ba3ca8.tar.xz
mptcp: implement mptcp_userspace_pm_get_addr
This patch implements mptcp_userspace_pm_get_addr() to get an address from userspace pm address list according the given 'token' and 'id'. Use nla_get_u32() to get the u32 value of 'token', then pass it to mptcp_token_get_sock() to get the msk. Pass 'msk' and 'id' to the helper mptcp_userspace_pm_lookup_addr_by_id() to get the address entry. Put this entry to userspace using mptcp_pm_nl_put_entry_info(). Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn> Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Reviewed-by: Mat Martineau <martineau@kernel.org> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions