Trace thread config + paranoid level + preload (#176)

- OMNITRACE_TRACE_THREAD_BARRIERS config option
  - set to OFF to disable wrapping `pthread_barrier`
- OMNITRACE_TRACE_THREAD_JOIN config option
  - set to OFF to disable wrapping `pthread_join`
- allow PAPI with perf_event_paranoid at level 2
- default to no PAPI events
- setenv LD_PRELOAD to not include libomnitrace after preload
  - closes #175 
- bump version to 1.7.1
This commit is contained in:
Jonathan R. Madsen
2022-10-06 19:11:08 -05:00
zatwierdzone przez GitHub
rodzic 2a387f9099
commit a3439d5bf2
7 zmienionych plików z 94 dodań i 21 usunięć
+5 -1
Wyświetl plik
@@ -96,13 +96,17 @@ variable to be enabled (i.e., `OMNITRACE_USE_ROCPROFILER=ON`).
Example configuration for hardware counters:
```console
# using papi identifiers
OMNITRACE_PAPI_EVENTS = PAPI_TOT_CYC PAPI_TOT_INS
# using perf identifiers
OMNITRACE_PAPI_EVENTS = perf::INSTRUCTIONS perf::CACHE-REFERENCES perf::CACHE-MISSES
```
#### OMNITRACE_PAPI_EVENTS
In order to collect the majority of hardware counters via PAPI, you need to make sure the `/proc/sys/kernel/perf_event_paranoid`
has a value of less than 2. If you have sudo access, you can use the following command to modify the value:
has a value <= 2. If you have sudo access, you can use the following command to modify the value:
```shell
echo 0 | sudo tee /proc/sys/kernel/perf_event_paranoid