aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorDouglas Anderson <dianders@chromium.org>2021-09-16 16:19:40 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-21 18:29:35 +0200
commit7065f92255bb2468dbb9aa0537ff186ef64d5a02 (patch)
tree89eb03ae8b9713636d321ed476ab7c7c156a27dd /tools/perf/scripts/python/event_analyzing_sample.py
parentsysfs: simplify sysfs_kf_seq_show (diff)
downloadlinux-7065f92255bb2468dbb9aa0537ff186ef64d5a02.tar.gz
linux-7065f92255bb2468dbb9aa0537ff186ef64d5a02.zip
driver core: Clarify that dev_err_probe() is OK even w/out -EPROBE_DEFER
There is some debate about whether it's deemed acceptable to call dev_err_probe() if you know that the error code can never be -EPROBE_DEFER. Clarify in the function comments that this is OK. Specifically this makes us able to transform code like this: ret = do_something_that_cant_defer(); if (ret < 0) { dev_err(dev, "The foo failed to bar (%pe)\n", ERR_PTR(ret)); return ret; } to code like this: ret = do_something_that_cant_defer(); if (ret < 0) return dev_err_probe(dev, ret, "The foo failed to bar\n"); It is also possible that in the future folks might want a CONFIG option to strip out all probe error strings to save space (keeping non-probe errors) with the argument that probe errors rarely happen after bringup. Having probe errors reported with a consistent function would allow that. Cc: Stephen Boyd <swboyd@chromium.org> Signed-off-by: Douglas Anderson <dianders@chromium.org> Link: https://lore.kernel.org/r/20210916161931.1.I32bea713bd6c6fb419a24da73686145742b6c117@changeid Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions