diff options
| author | Tiezhu Yang <[email protected]> | 2022-08-29 11:05:09 +0800 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-08-29 15:38:14 +0200 |
| commit | bbcf0f55e57841e532ab395596db9197e8d53e8d (patch) | |
| tree | 064f8ae5f1073140956797ba0d93b8a0ed9843ed /tools/perf/scripts/python/check-perf-trace.py | |
| parent | aa75622c3be4d5819ce69c714acbcbd67bba5d65 (diff) | |
bpf, mips: No need to use min() to get MAX_TAIL_CALL_CNT
MAX_TAIL_CALL_CNT is 33, so min(MAX_TAIL_CALL_CNT, 0xffff) is always
MAX_TAIL_CALL_CNT, it is better to use MAX_TAIL_CALL_CNT directly.
At the same time, add BUILD_BUG_ON(MAX_TAIL_CALL_CNT > 0xffff) with a
comment on why the assertion is there.
Suggested-by: Daniel Borkmann <[email protected]>
Suggested-by: Johan Almbladh <[email protected]>
Signed-off-by: Tiezhu Yang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions