I am working on kernel module and the module outputs a hex code which is being read by a perl script using regex.
I am not able to make sense out of it:
while (<>) {
s/^([a-fA-F0-9]+)(\.)([a-fA-F0-9]+)(\s+.*)/sprintf("%s%s%s%s", &$converter(hex($1)), $2, hex($3), $4)/oe;
} continue {
print;
}
We are trying to read hex code to time in nano second.