summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2020-04-30 22:57:32 +0300
committerDavid S. Miller <davem@davemloft.net>2020-05-01 03:39:15 +0300
commitcb9d97de05646de69b997da0137b94e00cba7f99 (patch)
treea5db59a394f987769ff8e0caee3d3904cfa10dbd /tools/perf/scripts/python/export-to-postgresql.py
parent6cf96dd4272537baf4ceab452f6276da1b8d82af (diff)
downloadlinux-cb9d97de05646de69b997da0137b94e00cba7f99.tar.xz
r8169: improve rtl_coalesce_choose_scale
The time limit provided by userspace is multiplied with 1000, what could result in an overflow. Therefore change the time limit parameter unit from ns to us, and avoid the problematic operation. If there's no matching scale because provided time limit is too big, return ERANGE instead of EINVAL to provide a hint to the user what's wrong. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions