1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef __UAPI_PSAMPLE_H
3 #define __UAPI_PSAMPLE_H
6 /* sampled packet metadata */
10 PSAMPLE_ATTR_SAMPLE_GROUP
,
11 PSAMPLE_ATTR_GROUP_SEQ
,
12 PSAMPLE_ATTR_SAMPLE_RATE
,
15 /* commands attributes */
16 PSAMPLE_ATTR_GROUP_REFCOUNT
,
21 enum psample_command
{
23 PSAMPLE_CMD_GET_GROUP
,
24 PSAMPLE_CMD_NEW_GROUP
,
25 PSAMPLE_CMD_DEL_GROUP
,
28 /* Can be overridden at runtime by module option */
29 #define PSAMPLE_ATTR_MAX (__PSAMPLE_ATTR_MAX - 1)
31 #define PSAMPLE_NL_MCGRP_CONFIG_NAME "config"
32 #define PSAMPLE_NL_MCGRP_SAMPLE_NAME "packets"
33 #define PSAMPLE_GENL_NAME "psample"
34 #define PSAMPLE_GENL_VERSION 1