diff options
| author | Thomas Weißschuh <[email protected]> | 2023-07-09 23:18:00 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-08-04 15:28:41 +0200 |
| commit | 31ed379b7cb2b5c1f2abc7255ff31c30bab26066 (patch) | |
| tree | d92d52c2ae74c454dd62e925ab685ad97855c9bb /tools/perf/scripts/python | |
| parent | 3bdaf739057e80811a9c299115d3272a69276049 (diff) | |
dyndbg: add source filename to prefix
Printing the line number without the file is of limited usefulness.
Knowing the filename also makes it also easier to relate the logged
information to the controlfile.
Example:
# modprobe test_dynamic_debug
# echo 'file test_dynamic_debug.c =pfsl' > /proc/dynamic_debug/control
# echo 1 > /sys/module/test_dynamic_debug/parameters/do_prints
# dmesg | tail -2
[ 71.802212] do_cats:lib/test_dynamic_debug.c:103: test_dd: doing categories
[ 71.802227] do_levels:lib/test_dynamic_debug.c:123: test_dd: doing levels
Signed-off-by: Thomas Weißschuh <[email protected]>
Acked-by: Jim Cromie <[email protected]>
Acked-by: Jason Baron <[email protected]>
Reviewed-by: Luis Chamberlain <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions