argdist: Generated streq-helper to ignore null terminator
authorSasha Goldshtein <goldshtn@gmail.com>
Mon, 16 Jan 2017 18:38:30 +0000 (18:38 +0000)
committerSasha Goldshtein <goldshtn@gmail.com>
Tue, 17 Jan 2017 07:42:39 +0000 (07:42 +0000)
commitfd44cd244afa088303ee4b5a878980dda0f836ce
treed695b99366cb635bb8dfa9a2cac8c6682fe560c9
parent50486ff50fa3e049f4620d47e82db41dde71f815
argdist: Generated streq-helper to ignore null terminator

Oftentimes we want to use the STRCMP helper to compare strings that
are not null-terminated, e.g. in USDT probes this often happens.
Ignore the null terminator (i.e. loop until the last character
excluding the null terminator).
tools/argdist.py