summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_debug_symbol.h
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-08-18 16:38:17 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-08-20 18:18:28 +0200
commit40eef4c20cc0b4500a0d8c8538872ed4b473d737 (patch)
tree8c01def1006d37e8877f310fb5814cd2ad7ac000 /src/gallium/auxiliary/util/u_debug_symbol.h
parentb3e57fc8685af44dcf35a7f429b7410e63a9a571 (diff)
u_debug_symbol: add symbol name caching
Without this, any form of logging that dumps stack traces continuously will spend a lot of time resolving symbol names.
Diffstat (limited to 'src/gallium/auxiliary/util/u_debug_symbol.h')
-rw-r--r--src/gallium/auxiliary/util/u_debug_symbol.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_debug_symbol.h b/src/gallium/auxiliary/util/u_debug_symbol.h
index 5e283e5ba3..b247706c2a 100644
--- a/src/gallium/auxiliary/util/u_debug_symbol.h
+++ b/src/gallium/auxiliary/util/u_debug_symbol.h
@@ -45,10 +45,12 @@ extern "C" {
void
debug_symbol_name(const void *addr, char* buf, unsigned size);
+const char*
+debug_symbol_name_cached(const void *addr);
+
void
debug_symbol_print(const void *addr);
-
#ifdef __cplusplus
}
#endif