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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to