diff options
| author | Franck Bui-Huu <[email protected]> | 2010-12-20 14:18:04 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2010-12-21 18:20:12 +0000 |
| commit | fde52dbd7f71934aba4e150f3d1d51e826a08850 (patch) | |
| tree | 1b96f7055ad29b37a25e2de748f128ae5d44fb77 /tools/perf/scripts/python/sched-migration.py | |
| parent | perf probe: Fix line range description since a single file is allowed (diff) | |
| download | kernel-fde52dbd7f71934aba4e150f3d1d51e826a08850.tar.gz kernel-fde52dbd7f71934aba4e150f3d1d51e826a08850.zip | |
perf probe: Don't always consider EOF as an error when listing source code
When listing a whole file or a function which is located at the end,
perf-probe -L output wrongly: "Source file is shorter than expected.".
This is because show_one_line() always consider EOF as an error.
This patch fixes this by not considering EOF as an error when dumping
the trailing lines. Otherwise it's still an error and perf-probe still
outputs its warning.
Acked-by: Masami Hiramatsu <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Franck Bui-Huu <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
