mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2026-02-12 16:11:00 +00:00
Remove unnecessary GIL acquisition in PerfEventArray
This commit is contained in:
@ -81,7 +81,6 @@ void PerfEventArray::sample_callback_wrapper(void *ctx, int cpu, void *data,
|
|||||||
} catch (const py::error_already_set &e) {
|
} catch (const py::error_already_set &e) {
|
||||||
PyErr_Print();
|
PyErr_Print();
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
py::gil_scoped_acquire acquire;
|
|
||||||
py::print("C++ error in perf callback:", e.what());
|
py::print("C++ error in perf callback:", e.what());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user