diff options
| author | Thomas Gleixner <tglx@kernel.org> | 2026-07-07 21:07:05 +0200 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-07-12 12:38:02 +0200 |
| commit | fb419d53f2619e29bf4f96613d9a614e1c263736 (patch) | |
| tree | 6f8191d3228033fe0345dd75c3b9ea0f55b20b1c /tools/perf/scripts/python/stackcollapse.py | |
| parent | 1b1f3b3e1b3945ae6e49081fd3586a6833d4a555 (diff) | |
x86/entry: Simplify the syscall number logic
Converting from int to long, back to int and then to unsigned int is
confusing at best.
None of this voodoo is required. Negative syscall numbers including -1
don't need any of this treatment and the low level ASM code already does
the sign extension to 64-bit on a 64-bit kernel.
The only point where signedness matters is the comparison against the
maximum syscall number, but that can be simplified by just using a unsigned
argument for the various syscall invocation functions.
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Tested-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>
Link: https://patch.msgid.link/20260707190254.545214398@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
