The pfm_create_evtsets() system-call may modify the timeout value, so display
the timeout value that the kernel is actually going to use.
Signed-off-by: Kevin Corry <[EMAIL PROTECTED]>
--- libpfm-a/examples/pfmsetup.c 24 Apr 2007 04:46:33 -0000
+++ libpfm-b/examples/pfmsetup.c 26 Apr 2007 19:27:12 -0000
@@ -1426,6 +1426,10 @@
LOG_INFO("%s event-set %d in context %d.",
new_set ? "Created" : "Modified", event_set_id, ctx_id);
+ if (switch_on_timeout) {
+ LOG_INFO(" Actual timeout set to %llu ns.",
+ set_arg.set_timeout);
+ }
return 0;
}
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/