aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <[email protected]>2023-09-19 10:51:44 +0200
committerGreg Kroah-Hartman <[email protected]>2023-10-03 14:31:15 +0200
commit72369f2d493d4c0f4f0ed5a66b19c6912c4837ef (patch)
treecc319b10ba6fe68220feee01fbb24c1d0c12cf3c /tools/perf/scripts/python/stackcollapse.py
parent1e619477a9c8d6e2ec05a53cda97558fdf9f440e (diff)
tty: n_tty: use min3() in copy_from_read_buf()
n is a minimum of: * available chars in the ring buffer * available chars in the ring buffer till the end of the ring buffer * requested number (*nr) We can use min3() for that instead of two min()s. Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions