linux/drivers/misc/habanalabs/common
Ohad Sharabi 0263256791 habanalabs: trace DMA allocations
This patch add tracepoints in the code for DMA allocation.
The main purpose is to be able to cross data with the map operations and
determine whether memory violation occurred, for example free DMA
allocation before unmapping it from device memory.

To achieve this the DMA alloc/free code flows were refactored so that a
single DMA tracepoint will catch many flows.

To get better understanding of what happened in the DMA allocations
the real allocating function is added to the trace as well.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2022-09-18 13:29:53 +03:00
..
mmu habanalabs: trace MMU map/unmap page 2022-09-18 13:29:53 +03:00
pci habanalabs: remove obsolete device variables used for testing 2022-07-12 09:09:27 +03:00
asid.c habanalabs: Use the bitmap API to allocate bitmaps 2022-07-12 09:09:30 +03:00
command_buffer.c habanalabs: refactor dma asic-specific functions 2022-07-12 09:09:26 +03:00
command_submission.c habanalabs/gaudi2: new API to control engine cores running mode 2022-09-18 13:29:51 +03:00
context.c habanalabs: add gaudi2 asic-specific code 2022-07-12 09:09:27 +03:00
debugfs.c habanalabs: fix H/W block handling for partial unmappings 2022-09-18 13:29:51 +03:00
decoder.c habanalabs: add gaudi2 asic-specific code 2022-07-12 09:09:27 +03:00
device.c habanalabs: trace DMA allocations 2022-09-18 13:29:53 +03:00
firmware_if.c habanalabs: remove left-over code from bring-up 2022-09-18 13:29:51 +03:00
habanalabs_drv.c habanalabs: define trace events 2022-09-18 13:29:53 +03:00
habanalabs_ioctl.c habanalabs: expose device security status using info ioctl 2022-09-18 13:29:52 +03:00
habanalabs.h habanalabs: trace DMA allocations 2022-09-18 13:29:53 +03:00
hw_queue.c habanalabs: add gaudi2 wait-for-CS support 2022-07-12 09:09:28 +03:00
hwmon.c habanalabs: unify hwmon resources clean up 2022-09-18 13:29:51 +03:00
irq.c habanalabs: rename soft reset to compute reset 2022-07-12 09:09:31 +03:00
Makefile habanalabs: add generic security module 2022-07-12 09:09:27 +03:00
memory_mgr.c habanalabs: fix spelling mistakes 2022-09-18 13:29:50 +03:00
memory.c habanalabs: fix bug when setting va block size 2022-09-18 13:29:52 +03:00
security.c habanalabs: add gaudi2 wait-for-CS support 2022-07-12 09:09:28 +03:00
state_dump.c habanalabs: state dump monitors and fences infrastructure 2021-08-29 09:47:46 +03:00
sysfs.c habanalabs: expose device security status through sysfs 2022-09-18 13:29:52 +03:00