linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ian Rogers <irogers@google.com>
To: Rajasekhar Pulluru <pullururajasekhar@gmail.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: DSO_BINARY_TYPE__SYSTEM_PATH_DSO
Date: Fri, 19 May 2023 10:57:09 -0700	[thread overview]
Message-ID: <CAP-5=fWV2+auUQHQ5cvn2948M=0ThtrHftgGMM44ceCZyHiQeQ@mail.gmail.com> (raw)
In-Reply-To: <CAGA5_H6Ld9U0eTatJeExSGEynf41mvfcPZ34rtdO7rAVNuoXYQ@mail.gmail.com>

On Fri, May 19, 2023 at 10:49 AM Rajasekhar Pulluru
<pullururajasekhar@gmail.com> wrote:
>
> Hi Team,
> Could someone help me shed some light on this macro
> DSO_BINARY_TYPE__SYSTEM_PATH_DSO ?
>
> Case-1: I am trying to run perf top -p `pidof <app>` on ubuntu host
> (based on ubuntu:jammy, outside the container) where the <app> runs
> inside a container that's based on ubuntu bionic, and I don't see any
> of <app> symbols (only hex-address and no function names) in perf top
> output.
>
> Case-2: When I try to run perf top -p `pidof <app>` on ubuntu host
> (based on ubuntu:bionic, outside the container) where the <app> runs
> inside a container that's also based on ubuntu bionic, and I can see
> <app> symbols (function names) in perf top output.
>
> On debugging both the cases, I find that, case-2 is able to display
> symbol when dso__load of </opt/bin/<app> is successful for the type
> DSO_BINARY_TYPE__SYSTEM_PATH_DSO, where-as the same fails for case-1
> (is_regular_file check fails), and perf top reports "Failed to open
> /opt/bin/<app>, continuing without symbols".
>
> In both the cases, the file /opt/bin/<app> is not available on the
> host, and its only available inside the container.
> What could be causing the above failure?
>
> Appreciate any help/inputs.

Hi Rajasekhar,

This is an area I'm not familiar with. I suspect the reason perf
record/report are succeeding from your description is namespace
information. If you look at the perf.data file with "perf script" and
probably the "-D" option, you should see information. I'm not sure
anybody has wired up the namespace code with perf top, which would go
a long way to explaining your problems.

Thanks for investigating this!
Ian

> Thanks & Regards,
> Rajasekhar

  reply	other threads:[~2023-05-19 17:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-19 17:48 DSO_BINARY_TYPE__SYSTEM_PATH_DSO Rajasekhar Pulluru
2023-05-19 17:57 ` Ian Rogers [this message]
2023-05-22 17:50   ` DSO_BINARY_TYPE__SYSTEM_PATH_DSO Rajasekhar Pulluru

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='CAP-5=fWV2+auUQHQ5cvn2948M=0ThtrHftgGMM44ceCZyHiQeQ@mail.gmail.com' \
    --to=irogers@google.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=pullururajasekhar@gmail.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;
as well as URLs for NNTP newsgroup(s).