summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDi Zhu <zhudi21@huawei.com>2021-01-25 15:42:29 +0300
committerJakub Kicinski <kuba@kernel.org>2021-01-28 03:46:37 +0300
commit275b1e88cabb34dbcbe99756b67e9939d34a99b6 (patch)
tree5dd1b5c0401b97557a7631412656438e3506c340 /tools/perf/scripts/python
parent6b2e04bc240fe9be9e690059f710e9f95346d34d (diff)
downloadlinux-275b1e88cabb34dbcbe99756b67e9939d34a99b6.tar.xz
pktgen: fix misuse of BUG_ON() in pktgen_thread_worker()
pktgen create threads for all online cpus and bond these threads to relevant cpu repecivtily. when this thread firstly be woken up, it will compare cpu currently running with the cpu specified at the time of creation and if the two cpus are not equal, BUG_ON() will take effect causing panic on the system. Notice that these threads could be migrated to other cpus before start running because of the cpu hotplug after these threads have created. so the BUG_ON() used here seems unreasonable and we can replace it with WARN_ON() to just printf a warning other than panic the system. Signed-off-by: Di Zhu <zhudi21@huawei.com> Link: https://lore.kernel.org/r/20210125124229.19334-1-zhudi21@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions