aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorBenjamin Berg <benjamin@sipsolutions.net>2023-11-10 12:03:41 +0100
committerRichard Weinberger <richard@nod.at>2024-01-04 23:45:17 +0100
commit236f9fe39b02c15fa5530b53e9cca48354394389 (patch)
treec33819038c333eccbd673b048f7bc58ae7911872 /tools/perf/scripts/python/export-to-postgresql.py
parent9e16fb933fd1f2132c0d137f3666ebf20f93e33a (diff)
downloadlinux-236f9fe39b02c15fa5530b53e9cca48354394389.tar.gz
linux-236f9fe39b02c15fa5530b53e9cca48354394389.tar.bz2
linux-236f9fe39b02c15fa5530b53e9cca48354394389.zip
um: Don't use vfprintf() for os_info()
The threads allocated inside the kernel have only a single page of stack. Unfortunately, the vfprintf function in standard glibc may use too much stack-space, overflowing it. To make os_info safe to be used by helper threads, use the kernel vscnprintf function into a smallish buffer and write out the information to stderr. Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions