linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chulmin Kim <cmkim@core.kaist.ac.kr>
To: Shahina Rabbani <shahinarabbani.shaik@gmail.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: Queries on using PERF tool
Date: Wed, 28 Nov 2012 15:02:43 +0900	[thread overview]
Message-ID: <50B5A903.5080003@core.kaist.ac.kr> (raw)
In-Reply-To: <loom.20121128T064019-497@post.gmane.org>



2012-11-28 오후 2:47, Shahina Rabbani 쓴 글:
> Hi,
>
> I am a new user of PERF tool. I have few questions to ask about the PERF tool.
> Please help me with the answers.
>
> Q1. Is it possible to use PERF tool on a piece of code? Say i have a process P1
> and the process has several functions F1, F2, F3. Is it possible to perform
> profilng only on F1 Function ??
>

As other profiling tools do, PERF also supports monitoring per function 
(per SYMBOL).

You can select the result related with the function you are interested in.

> Q2. Say i am using the PERF tool to counts some events depending on the clock
> value. If i change the clock value in between, then PERF tool can be able to
> understand the situation and generate the event counts according to the old and
> new clock values??

As far as I know, there is no such thing to change the event type 
dynamically. Why don't you just monitor both of them simultaneously?

If you really want this job to be done in only this way,
you can make your own script which can change the event for Perf based 
on the clock value (also monitored by Perf).



>
>
> Please Help.
>
> Thanks,
> Shahina Rabbani
>
> --
> 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:[~2012-11-28  6:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-28  5:47 Queries on using PERF tool Shahina Rabbani
2012-11-28  6:02 ` Chulmin Kim [this message]
2012-11-29  6:59   ` Namhyung Kim
     [not found]     ` <CA+wByoXeohgy4bhi3WN3was0-7RboXzWcTU1Kv0DrZ=b7ewR4Q@mail.gmail.com>
2012-11-29 14:47       ` Namhyung Kim
     [not found] ` <CAD15agZ1Q5RZ=LLnJ5d1t7WURL+C=S_KZ+Hn_NxukyYKaX12Vw@mail.gmail.com>
     [not found]   ` <CA+wByoUyv8LGA_rZXV=xgLXQWG=s3jAXq9m_38tE9DjY94DC0w@mail.gmail.com>
2012-11-28  7:16     ` Chulmin Kim

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=50B5A903.5080003@core.kaist.ac.kr \
    --to=cmkim@core.kaist.ac.kr \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=shahinarabbani.shaik@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).