mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
Before this patch, matching an error stack trace with many suppression patterns was implying to repeating the translation of the IPs of the stack trace to the function name or object name for each suppr pattern. This patch introduces a "lazy input completer" in the generic match so that an IP is (in the worst case) translated once to its function name and once to its object name. It is a "lazy" completer in the sense that only the needed IP to fun or obj name are done. On a artificial test case, has given a factor 3 in performance. On another big (real) application, gave a factor 2 to 3. (there was less matching to do, but probably more debug info to search). match-overrun.supp completed to have non matching suppr first to better exercise the lazy completer. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12824
22 lines
238 B
Plaintext
22 lines
238 B
Plaintext
{
|
|
nonmatching1
|
|
Memcheck:Addr4
|
|
fun:a123456789*
|
|
fun:nonmatching
|
|
fun:main
|
|
}
|
|
{
|
|
nonmatching2
|
|
Memcheck:Addr4
|
|
fun:a123456789*
|
|
fun:main
|
|
fun:nonmatching
|
|
}
|
|
|
|
{
|
|
test
|
|
Memcheck:Addr4
|
|
fun:a123456789*
|
|
fun:main
|
|
}
|