diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2020-10-28 19:10:27 +0900 |
---|---|---|
committer | Paul Elder <paul.elder@ideasonboard.com> | 2020-11-03 11:30:09 +0900 |
commit | 27c9d6eceb15b8a4e400fd2b053fb84d0db10da4 (patch) | |
tree | 40f60fe2fcb7a8c0a0b3b5a48c0d8f22745c4268 /include/libcamera/internal/tracepoints/pipeline.tp | |
parent | fcc6d4bd76874585336cb0bbbd369702b59515d2 (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/pipeline.tp')
-rw-r--r-- | include/libcamera/internal/tracepoints/pipeline.tp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/libcamera/internal/tracepoints/pipeline.tp b/include/libcamera/internal/tracepoints/pipeline.tp new file mode 100644 index 00000000..c0a94635 --- /dev/null +++ b/include/libcamera/internal/tracepoints/pipeline.tp @@ -0,0 +1,25 @@ +TRACEPOINT_EVENT( + libcamera, + ipa_call_begin, + TP_ARGS( + const char *, pipe, + const char *, func + ), + TP_FIELDS( + ctf_string(pipeline_name, pipe) + ctf_string(function_name, func) + ) +) + +TRACEPOINT_EVENT( + libcamera, + ipa_call_end, + TP_ARGS( + const char *, pipe, + const char *, func + ), + TP_FIELDS( + ctf_string(pipeline_name, pipe) + ctf_string(function_name, func) + ) +) |