Hi,
I have been trying to incorporate perfmon2 with libpfm into an existing
open-source project in C and I want to share my experiences as an end-user.
I am fairly new to perfmon2 and libpfm, so forgive me if I state anything
incorrect.
Well, for self-monitoring it all works very well and it is straightforward
to implement / add to existing projects. Moreover, there are numerous
examples that illustrate many usages.
But, the problems started when I wanted to follow forks(). Even though I am
able to do self-monitoring, I have to attach from a monitoring process with
ptrace(). This is quite a lot of overhead for applications that have many
worker threads that need to be monitored individualy, slows down performance
because of ptrace() and is not easy to add to an existing project. In my
opinion, it would be very useful to add an option to libpfm that makes child
processes inherit the context and add to the counters. Then, in cases
similar to mine, attaching with ptrace() would be unnecasary.
Anyway, I thought it would be useful to share my experiences, no more than
that.
Best regards,
Andrej
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel