diff options
| author | Guenter Roeck <[email protected]> | 2019-05-30 11:40:47 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2019-06-05 13:06:07 +0000 |
| commit | 7c33277b9a9ada187f805b41ffbebe6c51622fb6 (patch) | |
| tree | 8c34fbee42a6e803bc4d96f91ed20dbacf5229c7 /tools/perf/scripts/python/compaction-times.py | |
| parent | Linux 5.2-rc3 (diff) | |
| download | kernel-7c33277b9a9ada187f805b41ffbebe6c51622fb6.tar.gz kernel-7c33277b9a9ada187f805b41ffbebe6c51622fb6.zip | |
samples: fix pidfd-metadata compilation
Define __NR_pidfd_send_signal if it isn't to prevent a compilation error.
To make pidfd-metadata compile on all arches, irrespective of whether
or not syscall numbers are assigned, define the syscall number to -1.
If it isn't defined this will cause the kernel to return -ENOSYS.
Fixes: 43c6afee48d4 ("samples: show race-free pidfd metadata access")
Reported-by: Arnd Bergmann <[email protected]>
Reported-by: Guenter Roeck <[email protected]>
Cc: Christian Brauner <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
[[email protected]: tweak commit message]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions
