summaryrefslogtreecommitdiff
path: root/include/libcamera/internal/tracepoints/request_enums.tp
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2020-10-28 19:10:27 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2020-11-03 11:30:09 +0900
commit27c9d6eceb15b8a4e400fd2b053fb84d0db10da4 (patch)
tree40f60fe2fcb7a8c0a0b3b5a48c0d8f22745c4268 /include/libcamera/internal/tracepoints/request_enums.tp
parentfcc6d4bd76874585336cb0bbbd369702b59515d2 (diff)
libcamera: request: Add tracepoints
Add and use tracepoints in Request. Requests are core to libcamera operation, thus detecting delays in their processing is important, and serves as a good usage example of tracepoints. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include/libcamera/internal/tracepoints/request_enums.tp')
-rw-r--r--include/libcamera/internal/tracepoints/request_enums.tp9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libcamera/internal/tracepoints/request_enums.tp b/include/libcamera/internal/tracepoints/request_enums.tp
new file mode 100644
index 00000000..371f6544
--- /dev/null
+++ b/include/libcamera/internal/tracepoints/request_enums.tp
@@ -0,0 +1,9 @@
+TRACEPOINT_ENUM(
+ libcamera,
+ request_status,
+ TP_ENUM_VALUES(
+ ctf_enum_value("RequestPending", 0)
+ ctf_enum_value("RequestComplete", 1)
+ ctf_enum_value("RequestCancelled", 2)
+ )
+)