Thomas Richter
fc1b20f168
perf bench: Fix perf bench syscall loop count
[ Upstream commit 957d194163bf983da98bf7ec7e4f86caff8cd0eb ]
Command 'perf bench syscall fork -l 100000' offers option -l to run for
a specified number of iterations. However this option is not always
observed. The number is silently limited to 10000 iterations as can be
seen:
Output before:
# perf bench syscall fork -l 100000
# Running 'syscall/fork' benchmark:
# Executed 10,000 fork() calls
Total time: 23.388 [sec]
2338.809800 usecs/op
427 ops/sec
#
When explicitly specified with option -l or --loops, also observe
higher number of iterations:
Output after:
# perf bench syscall fork -l 100000
# Running 'syscall/fork' benchmark:
# Executed 100,000 fork() calls
Total time: 716.982 [sec]
7169.829510 usecs/op
139 ops/sec
#
This patch fixes the issue for basic execve fork and getpgid.
Fixes: ece7f7c050 ("perf bench syscall: Add fork syscall benchmark")
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Tested-by: Athira Rajeev <atrajeev@linux.ibm.com>
Cc: Tiezhu Yang <yangtiezhu@loongson.cn>
Link: https://lore.kernel.org/r/20250304092349.2618082-1-tmricht@linux.ibm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:39:23 +02:00
..
2024-04-12 17:54:02 -03:00
2023-08-23 08:39:02 -03:00
2024-06-26 11:07:28 -07:00
2024-06-13 21:27:26 -07:00
2025-02-17 10:05:12 +01:00
2023-04-04 09:39:56 -03:00
2024-06-13 21:26:58 -07:00
2024-06-13 21:26:58 -07:00
2024-06-13 21:26:58 -07:00
2024-06-13 21:27:49 -07:00
2024-06-13 21:26:58 -07:00
2024-05-07 12:44:02 -03:00
2023-05-17 10:42:19 -03:00
2023-05-17 10:42:19 -03:00
2023-05-17 10:42:19 -03:00
2023-05-17 10:42:19 -03:00
2023-04-04 09:39:56 -03:00
2023-08-24 10:42:46 -03:00
2023-09-26 21:47:12 -07:00
2023-10-25 10:02:10 -07:00
2023-12-05 15:48:52 -03:00
2024-08-12 18:05:14 -03:00
2025-04-10 14:39:23 +02:00
2024-04-12 17:54:02 -03:00