libcuda.so logger

As illustration of ideas from my previous blogpost I made PoC for logging all libcuda.so calls - as the cuda-gdb debugger sees them It just installs own debug handler and receives all messages. Note: only x86_64 linux supported, but logic can be easily extended for x86 32bit and highly likely for arm64 too events generating before each call, so you can't get result of those calls Current handler…