linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Elazar Leibovich <elazar.leibovich@ravellosystems.com>
To: sahil aggarwal <sahil.agg15@gmail.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: Translation to File name in sys_enter_open
Date: Mon, 6 Apr 2015 20:21:39 +0300	[thread overview]
Message-ID: <CAL2Y34Cb7YEkwJ24K9gCpN4cWDBxsrU=0HQOYXtEXihLUmdpsw@mail.gmail.com> (raw)
In-Reply-To: <CAGAANTWqLq4j-2rn=FPxOYw-dgG-2ed-JZfiQy76zB7WU4iA4Q@mail.gmail.com>

I don't think you really can do that in the general case. I guess that
you can check the CWD of the running process, and calculate the
absolute path from it. Though, of course, you don't know the exact
state of the filesystem when the event occured.

On Mon, Apr 6, 2015 at 1:08 PM, sahil aggarwal <sahil.agg15@gmail.com> wrote:
> Hi
>
> I enabled sampling on tracepoint sys_enter_open but filename field
> returned is address to filename as being passed to the system call,
> how i can translate this to actual file name while reading ring
> buffer.? How perf is doing it.?
>
> Thanks
> Regards
> Sahil
> --
> To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2015-04-06 17:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-06 10:08 Translation to File name in sys_enter_open sahil aggarwal
2015-04-06 17:21 ` Elazar Leibovich [this message]
2015-04-07 11:40   ` sahil aggarwal
2015-04-07 12:21     ` Arnaldo Carvalho de Melo

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='CAL2Y34Cb7YEkwJ24K9gCpN4cWDBxsrU=0HQOYXtEXihLUmdpsw@mail.gmail.com' \
    --to=elazar.leibovich@ravellosystems.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sahil.agg15@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).