|
@@ -1,6 +1,6 @@
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
/*
|
|
|
- * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
|
|
*/
|
|
|
|
|
|
#if !defined(_CAM_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
@@ -50,6 +50,7 @@ TRACE_EVENT(cam_isp_activated_irq,
|
|
|
__field(uint32_t, substate)
|
|
|
__field(uint32_t, event)
|
|
|
__field(uint64_t, ts)
|
|
|
+ __field(int32_t, link_hdl)
|
|
|
),
|
|
|
TP_fast_assign(
|
|
|
__entry->ctx = ctx;
|
|
@@ -57,11 +58,13 @@ TRACE_EVENT(cam_isp_activated_irq,
|
|
|
__entry->substate = substate;
|
|
|
__entry->event = event;
|
|
|
__entry->ts = timestamp;
|
|
|
+ __entry->link_hdl = ctx->link_hdl;
|
|
|
+
|
|
|
),
|
|
|
TP_printk(
|
|
|
- "ISP: IRQ ctx=%p ctx_state=%u substate=%u event=%u ts=%llu",
|
|
|
+ "ISP: IRQ ctx=%p ctx_state=%u substate=%u event=%u ts=%llu link_hdl=0x%x",
|
|
|
__entry->ctx, __entry->state, __entry->substate,
|
|
|
- __entry->event, __entry->ts
|
|
|
+ __entry->event, __entry->ts, __entry->link_hdl
|
|
|
)
|
|
|
);
|
|
|
|
|
@@ -127,33 +130,39 @@ TRACE_EVENT(cam_buf_done,
|
|
|
TP_STRUCT__entry(
|
|
|
__string(ctx_type, ctx_type)
|
|
|
__field(void*, ctx)
|
|
|
+ __field(int32_t, link_hdl)
|
|
|
__field(uint64_t, request)
|
|
|
),
|
|
|
TP_fast_assign(
|
|
|
__assign_str(ctx_type, ctx_type);
|
|
|
__entry->ctx = ctx;
|
|
|
+ __entry->link_hdl = ctx->link_hdl;
|
|
|
__entry->request = req->request_id;
|
|
|
),
|
|
|
TP_printk(
|
|
|
- "%5s: BufDone ctx=%p request=%llu",
|
|
|
- __get_str(ctx_type), __entry->ctx, __entry->request
|
|
|
+ "%5s: BufDone ctx=%p request=%llu link_hdl=0x%x",
|
|
|
+ __get_str(ctx_type), __entry->ctx, __entry->request, __entry->link_hdl
|
|
|
)
|
|
|
);
|
|
|
|
|
|
TRACE_EVENT(cam_apply_req,
|
|
|
- TP_PROTO(const char *entity, uint64_t req_id),
|
|
|
- TP_ARGS(entity, req_id),
|
|
|
+ TP_PROTO(const char *entity, uint32_t id, uint64_t req_id,int32_t link_hdl),
|
|
|
+ TP_ARGS(entity, id, req_id, link_hdl),
|
|
|
TP_STRUCT__entry(
|
|
|
__string(entity, entity)
|
|
|
+ __field(uint32_t, id)
|
|
|
__field(uint64_t, req_id)
|
|
|
+ __field(int32_t, link_hdl)
|
|
|
),
|
|
|
TP_fast_assign(
|
|
|
__assign_str(entity, entity);
|
|
|
+ __entry->id = id;
|
|
|
__entry->req_id = req_id;
|
|
|
+ __entry->link_hdl = link_hdl;
|
|
|
),
|
|
|
TP_printk(
|
|
|
- "%8s: ApplyRequest request=%llu",
|
|
|
- __get_str(entity), __entry->req_id
|
|
|
+ "%8s: ApplyRequest id=%u request=%llu link_hdl=0x%x",
|
|
|
+ __get_str(entity), __entry->id, __entry->req_id, __entry->link_hdl
|
|
|
)
|
|
|
);
|
|
|
|
|
@@ -231,6 +240,7 @@ TRACE_EVENT(cam_req_mgr_apply_request,
|
|
|
__string(name, dev->dev_info.name)
|
|
|
__field(uint32_t, dev_id)
|
|
|
__field(uint64_t, req_id)
|
|
|
+ __field(int32_t, link_hdl)
|
|
|
__field(void*, link)
|
|
|
__field(void*, session)
|
|
|
),
|
|
@@ -240,11 +250,12 @@ TRACE_EVENT(cam_req_mgr_apply_request,
|
|
|
__entry->req_id = req->request_id;
|
|
|
__entry->link = link;
|
|
|
__entry->session = link->parent;
|
|
|
+ __entry->link_hdl = req->link_hdl;
|
|
|
),
|
|
|
TP_printk(
|
|
|
- "ReqMgr ApplyRequest devname=%s devid=%u request=%lld link=%pK session=%pK",
|
|
|
+ "ReqMgr ApplyRequest devname=%s devid=%u request=%lld link=%pK session=%pK link_hdl=0x%x",
|
|
|
__get_str(name), __entry->dev_id, __entry->req_id,
|
|
|
- __entry->link, __entry->session
|
|
|
+ __entry->link, __entry->session, __entry->link_hdl
|
|
|
)
|
|
|
);
|
|
|
|
|
@@ -264,6 +275,7 @@ TRACE_EVENT(cam_req_mgr_add_req,
|
|
|
__field(uint32_t, devicemap)
|
|
|
__field(void*, link)
|
|
|
__field(void*, session)
|
|
|
+ __field(int32_t, link_hdl)
|
|
|
),
|
|
|
TP_fast_assign(
|
|
|
__assign_str(name, dev->dev_info.name);
|
|
@@ -274,13 +286,15 @@ TRACE_EVENT(cam_req_mgr_add_req,
|
|
|
__entry->readymap = tbl->slot[idx].req_ready_map;
|
|
|
__entry->devicemap = tbl->dev_mask;
|
|
|
__entry->link = link;
|
|
|
+ __entry->link_hdl = link->link_hdl;
|
|
|
__entry->session = link->parent;
|
|
|
),
|
|
|
TP_printk(
|
|
|
- "ReqMgr AddRequest devname=%s devid=%d request=%lld slot=%d pd=%d readymap=%x devicemap=%d link=%pK session=%pK",
|
|
|
+ "ReqMgr AddRequest devname=%s devid=%d request=%lld slot=%d pd=%d readymap=%x devicemap=%d link=%pK session=%pK link_hdl=0x%x",
|
|
|
__get_str(name), __entry->dev_id, __entry->req_id,
|
|
|
__entry->slot_id, __entry->delay, __entry->readymap,
|
|
|
- __entry->devicemap, __entry->link, __entry->session
|
|
|
+ __entry->devicemap, __entry->link, __entry->session,
|
|
|
+ __entry->link_hdl
|
|
|
)
|
|
|
);
|
|
|
|