Hash only warning "file:line" in warning collector.
Before this change, the signature of a warning is computed from a string such as this one: /mnt/host/source/src/third_party/kernel/files/drivers/gpu/drm/i915/intel_dp.c:351 intel_dp_check_edp+0x6b/0xb9() This change removes all text after the first space, i.e. the function name and IP offset. The latter varies across architectures and can vary across builds, giving different signatures for the same warning. BUG=chromium:227080 TEST=manual Change-Id: Ied65dbd8edd734bd152a9dd35aaa48f1e8f1b9e8 Reviewed-on: https://gerrit.chromium.org/gerrit/49505 Commit-Queue: Luigi Semenzato <semenzato@chromium.org> Reviewed-by: Luigi Semenzato <semenzato@chromium.org> Tested-by: Luigi Semenzato <semenzato@chromium.org>
This commit is contained in:
parent
6fdc0b48cb
commit
5eb471c416
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ END_TRACE {PREFIX}" ---[ end trace".*
|
|||
|
||||
^{CUT_HERE}\n{WARNING} BEGIN(PRE_WARN);
|
||||
.|\n /* ignore all other input in state 0 */
|
||||
<PRE_WARN>.*\n if (WarnStart()) {
|
||||
<PRE_WARN>[^ ]+\n if (WarnStart()) { /* yytext is file:line */
|
||||
BEGIN(WARN); ECHO;
|
||||
} else {
|
||||
BEGIN(0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue