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
285285 # Boundaries are punct characters, spaces and end-of-line
286286 my $start = qr {(^|\s|\() }x;
287287 my $bondary = qr { ([,.:;\)\s]|\z) }x;
288−my $xref_match = qr { $start(\/sys\/[^,.:;\)\s]+)$bondary }x;
288+my $xref_match = qr { $start(\/(sys|config|proc|dev|kvd)\/[^,.:;\)\s]+)$bondary }x;
289289 my $symbols = qr { ([\x01-\x08\x0e-\x1f\x21-\x2f\x3a-\x40\x7b-\xff]) }x;
290290
291291 sub output_rest {