Skip to contentSkip to conversation

Fix: set soinfo_data's vdso flag correctly in base address statedump

PATCH Mathieu Desnoyers 1 participant 1 message Jun 30, 2015 1 message not in the archive

lore
Share & tools
lore

Mathieu Desnoyers

author Applied
#1 lore raw
In reply to a message not in the archive

merged into master, thanks!

Mathieu

Quoted 24 lines · ----- On Jun 30, 2015, at 5:59 PM, Antoine Busque [email protected] wrote:

The vdso flag is set to 0 when the executable can be found on disk.

---
liblttng-ust/lttng-ust-statedump.c | 2 ++

1 file changed, 2 insertions(+)
liblttng-ust/lttng-ust-statedump.c +2 -1
index 4faee07..37f067f 100644
@@ -191,6 +191,8 @@ int extract_soinfo_events(struct dl_phdr_info *info, size_t
 size, void *_data)
 				snprintf(resolved_path, PATH_MAX - 1, "[%s]",
 					info->dlpi_name);
 				so_data.vdso = 1;
+			} else {
+				so_data.vdso = 0;
 			}
 		}
 
--

2.4.5

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com