habanalabs: define trace events
authorOhad Sharabi <osharabi@habana.ai>
Wed, 8 Jun 2022 06:58:59 +0000 (09:58 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 18 Sep 2022 10:29:53 +0000 (13:29 +0300)
commit191a4443c39b278fbb0898590530bef122b26b7e
tree2b43f88d06917119aa138b542706fe2f2b9728fb
parent7b5d13c9cae72b9baac88009401d5518cd86bb0d
habanalabs: define trace events

This patch adds trace events for habanalabs driver to gain all the
benefits such an infrastructure can supply.

The following events were added:
- MMU map/unmap: to be able to track driver's memory allocations
- DMA alloc/free: to track our DMA allocation

the above trace points in conjunction will help us map the device memory
usage as well as to be able to track memory violations.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Acked-by: Oded Gabbay <ogabbay@kernel.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
MAINTAINERS
drivers/misc/habanalabs/common/habanalabs_drv.c
include/trace/events/habanalabs.h [new file with mode: 0644]