History

scripts: get_abi.pl: extend xref match to other types

Currently, there are "What:" symbols for more than just /sys. Extend the regex to also cover configfs, /proc /dev and /kvd symbols.

Mauro Carvalho Chehab committed 5 years ago

Commit 87ec9ea1 parent 50ebf8f1 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/get_abi.pl+1−1
@@ -285,7 +285,7 @@ sub create_labels { · 284 unmodified lines
285# Boundaries are punct characters, spaces and end-of-line285# Boundaries are punct characters, spaces and end-of-line
286my $start = qr {(^|\s|\() }x;286my $start = qr {(^|\s|\() }x;
287my $bondary = qr { ([,.:;\)\s]|\z) }x;287my $bondary = qr { ([,.:;\)\s]|\z) }x;
288my $xref_match = qr { $start(\/sys\/[^,.:;\)\s]+)$bondary }x;288my $xref_match = qr { $start(\/(sys|config|proc|dev|kvd)\/[^,.:;\)\s]+)$bondary }x;
289my $symbols = qr { ([\x01-\x08\x0e-\x1f\x21-\x2f\x3a-\x40\x7b-\xff]) }x;289my $symbols = qr { ([\x01-\x08\x0e-\x1f\x21-\x2f\x3a-\x40\x7b-\xff]) }x;
290 290
291sub output_rest {291sub output_rest {