aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMatteo Croce <mcroce@redhat.com>2019-05-20 23:49:38 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2019-05-21 16:55:20 +0200
commita195cefff49f60054998333e81ee95170ce8bf92 (patch)
treed2d64339ee4cec662fb39e76660f244661b12109 /tools/perf/scripts/python
parentsamples, bpf: fix to change the buffer size for read() (diff)
downloadlinux-a195cefff49f60054998333e81ee95170ce8bf92.tar.gz
linux-a195cefff49f60054998333e81ee95170ce8bf92.zip
samples, bpf: suppress compiler warning
GCC 9 fails to calculate the size of local constant strings and produces a false positive: samples/bpf/task_fd_query_user.c: In function ‘test_debug_fs_uprobe’: samples/bpf/task_fd_query_user.c:242:67: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 215 [-Wformat-truncation=] 242 | snprintf(buf, sizeof(buf), "/sys/kernel/debug/tracing/events/%ss/%s/id", | ^~ 243 | event_type, event_alias); | ~~~~~~~~~~~ samples/bpf/task_fd_query_user.c:242:2: note: ‘snprintf’ output between 45 and 300 bytes into a destination of size 256 242 | snprintf(buf, sizeof(buf), "/sys/kernel/debug/tracing/events/%ss/%s/id", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 243 | event_type, event_alias); | ~~~~~~~~~~~~~~~~~~~~~~~~ Workaround this by lowering the buffer size to a reasonable value. Related GCC Bugzilla: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83431 Signed-off-by: Matteo Croce <mcroce@redhat.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
ub Kicinski1-0/+6 2021-04-19phy: nxp-c45: add driver for tja1103Radu Pirea (NXP OSS)4-0/+601 2021-04-19net: phy: add genphy_c45_pma_suspend/resumeRadu Pirea (NXP OSS)2-0/+45 2021-04-19net: marvell: prestera: add support for AC3X 98DX3265 deviceVadym Kochan1-0/+1 2021-04-19net: stmmac: fix memory leak during driver probeWong Vee Khee1-0/+2