diff options
| author | 2022-03-29 17:17:33 +0700 | |
|---|---|---|
| committer | 2022-04-20 17:05:46 -0700 | |
| commit | 544fa1a2d3e61c954ab531f2c790bc79c1745606 (patch) | |
| tree | 9d671e46bf8b28b32a61cc96d61a8d9b2c4ea330 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | tools/nolibc: i386: Implement syscall with 6 arguments (diff) | |
| download | linux-dev-544fa1a2d3e61c954ab531f2c790bc79c1745606.tar.xz linux-dev-544fa1a2d3e61c954ab531f2c790bc79c1745606.zip | |
tools/nolibc/sys: Implement `mmap()` and `munmap()`
Implement mmap() and munmap(). Currently, they are only available for
architecures that have my_syscall6 macro. For architectures that don't
have, this function will return -1 with errno set to ENOSYS (Function
not implemented).
This has been tested on x86 and i386.
Notes for i386:
1) The common mmap() syscall implementation uses __NR_mmap2 instead
of __NR_mmap.
2) The offset must be shifted-right by 12-bit.
Acked-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
