Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: abusque@efficios.com (Antoine Busque)
Subject: [lttng-dev] [PATCH lttng-ust] Fix: set soinfo_data's vdso flag correctly in base address statedump
Date: Tue, 30 Jun 2015 17:59:01 -0400	[thread overview]
Message-ID: <1435701541-8013-1-git-send-email-abusque@efficios.com> (raw)

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

Signed-off-by: Antoine Busque <abusque at efficios.com>
---
 liblttng-ust/lttng-ust-statedump.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/liblttng-ust/lttng-ust-statedump.c b/liblttng-ust/lttng-ust-statedump.c
index 4faee07..37f067f 100644
--- a/liblttng-ust/lttng-ust-statedump.c
+++ b/liblttng-ust/lttng-ust-statedump.c
@@ -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




             reply	other threads:[~2015-06-30 21:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-30 21:59 Antoine Busque [this message]
2015-06-30 22:34 ` Mathieu Desnoyers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1435701541-8013-1-git-send-email-abusque@efficios.com \
    --to=abusque@efficios.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox