mirror of
https://git.yoctoproject.org/poky
synced 2026-03-12 10:19:44 +01:00
Marked __syscall.compat_sendfile as optional (From OE-Core rev: 74bfb662246411aa062cd8b2acd37be1bbed39d3) Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com> Signed-off-by: Muzaffar Mahmood <muzaffar_mahmood@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
23 lines
966 B
Diff
23 lines
966 B
Diff
systemtap: Fixed probe syscall.sendfile failure
|
|
|
|
compat_sendfile syscall is unavailable in kernels starting version 3.8.
|
|
Hence systemtap scripts like 'probe syscall.* { if (target()==pid()) log(name." ".argstr) }' fail.
|
|
This problem is solved by marking __syscall.compat_sendfile as optional in tapset/linux/syscalls2.stp
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com>
|
|
|
|
diff -Naur old/tapset/linux/syscalls2.stp new/tapset/linux/syscalls2.stp
|
|
--- old/tapset/linux/syscalls2.stp 2014-04-21 01:28:41.000000000 -0500
|
|
+++ new/tapset/linux/syscalls2.stp 2014-04-21 01:38:14.961233914 -0500
|
|
@@ -1953,7 +1953,7 @@
|
|
# COMPAT_SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd,
|
|
# compat_loff_t __user *, offset, compat_size_t, count)
|
|
#
|
|
-probe syscall.sendfile = __syscall.sendfile, __syscall.compat_sendfile
|
|
+probe syscall.sendfile = __syscall.sendfile, __syscall.compat_sendfile ?
|
|
{
|
|
name = "sendfile"
|
|
out_fd = __int32($out_fd)
|