()
| 151 | use crate::executor::valgrind::executor::ValgrindExecutor; |
| 152 | |
| 153 | async fn get_valgrind_executor() -> (SemaphorePermit<'static>, ValgrindExecutor) { |
| 154 | static VALGRIND_SETUP: OnceCell<()> = OnceCell::const_new(); |
| 155 | |
| 156 | VALGRIND_SETUP |
| 157 | .get_or_init(|| async { |
| 158 | let executor = ValgrindExecutor; |
| 159 | let system_info = SystemInfo::new().unwrap(); |
| 160 | executor.setup(&system_info, None).await.unwrap(); |
| 161 | }) |
| 162 | .await; |
| 163 | let _lock = acquire_bpf_instrumentation_lock().await; |
| 164 | |
| 165 | (_lock, ValgrindExecutor) |
| 166 | } |
| 167 | |
| 168 | fn valgrind_config(command: &str) -> ExecutorConfig { |
| 169 | ExecutorConfig { |
no test coverage detected