Hi,
I'm using Fedora 15 and my goal is to compare the performance of
different Kernel module codes.
For example, on a custom module, I'm comparing:
getnstimeofday (ts_start); /*stopwatch start*/
for (i = 0; i < q->num_buffers; ++i)
q->bufs[i]->state = VB2_BUF_STATE_DEQUEUED;
getnstimeofday (ts_end); /*stopwatch stop*/
to:
getnstimeofday (ts_start); /*stopwatch start*/
buf_ptr_end = q->bufs[q->num_buffers];
for (buf_ptr = q->bufs[0]; buf_ptr < buf_ptr_end; ++buf_ptr)
buf_ptr->state = VB2_BUF_STATE_DEQUEUED;
getnstimeofday (ts_end); /*stopwatch stop*/
I was able to do the profiling with perf on user space, by making one
executable for each code, but I was not able to restrict the profiling
to the portion of the code I'm interested in.
My questions:
1 - How can I restrict the profiling to a specific portion of the code?
2 - How can I use perf to profile custom module?
Kind Regards,
Peter
--
Peter Senna Tschudin
[email protected]
gpg id: 48274C36
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html