Hi, On Wed, 28 Nov 2012 15:02:43 +0900, Chulmin Kim wrote: > 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.
It's not profiling the function only, it's just filtering the function in the whole result. You might want to use 'perf probe' command - on a recent kernel/perf tools support uprobe which is able to insert probe points dynamically to any user-level codes/functions. Thanks, Namhyung -- 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