[sysprof] libsysprof-capture: only short-circuit for address translation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof-capture: only short-circuit for address translation
- Date: Fri, 7 Jun 2019 00:49:54 +0000 (UTC)
commit 1b36f92f7398eb1967b7506e1b93d73d35f4f730
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 6 17:49:44 2019 -0700
libsysprof-capture: only short-circuit for address translation
src/libsysprof-capture/sysprof-capture-writer-cat.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/libsysprof-capture/sysprof-capture-writer-cat.c
b/src/libsysprof-capture/sysprof-capture-writer-cat.c
index a210220..2b2694a 100644
--- a/src/libsysprof-capture/sysprof-capture-writer-cat.c
+++ b/src/libsysprof-capture/sysprof-capture-writer-cat.c
@@ -127,10 +127,13 @@ translate_table_translate (GArray **tables,
const TranslateItem *item;
TranslateItem key = { src, 0 };
- if ((src & SYSPROF_CAPTURE_JITMAP_MARK) == 0)
- return src;
+ if (table == TRANSLATE_ADDR)
+ {
+ if ((src & SYSPROF_CAPTURE_JITMAP_MARK) == 0)
+ return src;
+ }
- if (!tables[table])
+ if (tables[table] == NULL)
return src;
item = bsearch (&key,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]