]> www.infradead.org Git - nvme.git/commit
net: psample: add user cookie
authorAdrian Moreno <amorenoz@redhat.com>
Thu, 4 Jul 2024 08:56:52 +0000 (10:56 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Jul 2024 00:45:46 +0000 (17:45 -0700)
commit093b0f366567aa3fed85c316f832607069202b23
tree41e77bfea79f323c007f7389202d88fd4975a344
parent064fbc4e9b5a6dbda7fe7b67dc7e9e95d31f8d75
net: psample: add user cookie

Add a user cookie to the sample metadata so that sample emitters can
provide more contextual information to samples.

If present, send the user cookie in a new attribute:
PSAMPLE_ATTR_USER_COOKIE.

Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Link: https://patch.msgid.link/20240704085710.353845-2-amorenoz@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/psample.h
include/uapi/linux/psample.h
net/psample/psample.c