HPCToolkit / libmonitor

HPCToolkit performance tools: libmonitor - a substrate for monitoring tools
Other
21 stars 10 forks source link

Allow the client to return a special value from thread_pre_create, #2

Closed mwkrentel closed 2 years ago

mwkrentel commented 3 years ago

MONITOR_IGNORE_NEW_THREAD, that tells monitor not to track this new thread (and descendant threads).


@blue42u @jmellorcrummey Try this. If monitor_thread_pre_create() returns MONITOR_IGNORE_NEW_THREAD, then monitor will not track the new thread and you won't get an init/fini callback and not a post_create callback.

For now, just build monitor separately. You'll want configure args:

  --disable-dlfcn
  --enable-client-signals='SIGBUS, SIGSEGV, SIGPROF, 36, 37, 38'

If this works, we can merge it into master. I'm working on some other things for monitor, so I'm going to hold off making a monitor release until I finish those things.

jmellorcrummey commented 3 years ago

Mark - Thanks for the monitor fix. We'll need to wait for the hpctoolkit lazy memory allocation patch from @dejangrubisic before this new monitor feature can be used.

mwkrentel commented 3 years ago

Ok, no rush. Let me know when you can test it and if it's sufficient.

dejangrubisic commented 3 years ago

Lazy memory allocation patch is implemented: https://github.com/HPCToolkit/hpctoolkit/pull/470#issuecomment-953420102 Tested and works on Perlmutter.