Skip to content

Commit 55cbf47

Browse files
committed
tools headers UAPI: sync linux/socket.h with kernel
JIRA: https://issues.redhat.com/browse/RHEL-29796 Upstream Status: RHEL only description =========== Upstream, when there is a change in a header file from the specific set of headers (listed in tools/perf/check-headers.sh), it is accompanied by a commit that brings the same change into its counterpart located in tools/include. Usually several changes are squashed together. We cannot easily follow this strategy, since we not always take all the commits squashed together. In order to tidy tools/include up, we need to sync the headers manually. Signed-off-by: Michael Petlan <mpetlan@redhat.com>
1 parent ee3d89d commit 55cbf47

File tree

1 file changed

+3
-0
lines changed
  • tools/perf/trace/beauty/include/linux

1 file changed

+3
-0
lines changed

tools/perf/trace/beauty/include/linux/socket.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ struct ucred {
320320
*/
321321

322322
#define MSG_ZEROCOPY 0x4000000 /* Use user data in kernel path */
323+
#define MSG_SPLICE_PAGES 0x8000000 /* Splice the pages from the iterator in sendmsg() */
323324
#define MSG_FASTOPEN 0x20000000 /* Send data in TCP SYN */
324325
#define MSG_CMSG_CLOEXEC 0x40000000 /* Set close_on_exec for file
325326
descriptor received through
@@ -330,6 +331,8 @@ struct ucred {
330331
#define MSG_CMSG_COMPAT 0 /* We never have 32 bit fixups */
331332
#endif
332333

334+
/* Flags to be cleared on entry by sendmsg and sendmmsg syscalls */
335+
#define MSG_INTERNAL_SENDMSG_FLAGS (MSG_SPLICE_PAGES)
333336

334337
/* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx */
335338
#define SOL_IP 0

0 commit comments

Comments
 (0)