tracing, dma-buf: Remove unused trace event dma_fence_annotate_wait_on
Subsystems (3)
Steven Rostedt
maintainerFrom: Steven Rostedt (VMware) <[email protected]>
Commit e941759c74 ("fence: dma-buf cross-device synchronization") added trace event fence_annotate_wait_on, but never used it. It was renamed to dma_fence_annotate_wait_on by commit f54d186700 ("dma-buf: Rename struct fence to dma_fence") but still not used. As defined trace events have data structures and functions created for them, it is a waste of memory if they are not used. Remove the unused trace event.
---
drivers/dma-buf/dma-fence.c +0 -1
@@ -27,7 +27,6 @@#define CREATE_TRACE_POINTS #include <trace/events/dma_fence.h> -EXPORT_TRACEPOINT_SYMBOL (dma_fence_annotate_wait_on);EXPORT_TRACEPOINT_SYMBOL (dma_fence_emit);EXPORT_TRACEPOINT_SYMBOL (dma_fence_enable_signal);
include/trace/events/dma_fence.h +0 -40
@@ -8,46 +8,6 @@struct dma_fence ; -TRACE_EVENT (dma_fence_annotate_wait_on, - -/* fence: the fence waiting on f1, f1: the fence to be waited on. */ - TP_PROTO(struct dma_fence *fence, struct dma_fence *f1), - -TP_ARGS (fence, f1), - -TP_STRUCT__entry ( - __string(driver, fence->ops->get_driver_name(fence)) - __string(timeline, fence->ops->get_timeline_name(fence)) - __field(unsigned int, context) - __field(unsigned int, seqno) - - __string(waiting_driver, f1->ops->get_driver_name(f1)) - __string(waiting_timeline, f1->ops->get_timeline_name(f1)) - __field(unsigned int, waiting_context) - __field(unsigned int, waiting_seqno) - ), - -TP_fast_assign ( - __assign_str(driver, fence->ops->get_driver_name(fence)) - __assign_str(timeline, fence->ops->get_timeline_name(fence)) - __entry->context = fence->context; - __entry->seqno = fence->seqno; - - __assign_str(waiting_driver, f1->ops->get_driver_name(f1)) - __assign_str(waiting_timeline, f1->ops->get_timeline_name(f1)) - __entry->waiting_context = f1->context; - __entry->waiting_seqno = f1->seqno; - - ), - -TP_printk ("driver=%s timeline=%s context=%u seqno=%u " \ -"waits on driver=%s timeline=%s context=%u seqno=%u" , -__get_str (driver),__get_str (timeline), __entry->context, - __entry->seqno, -__get_str (waiting_driver),__get_str (waiting_timeline), - __entry->waiting_context, __entry->waiting_seqno) -); - DECLARE_EVENT_CLASS(dma_fence, TP_PROTO(struct dma_fence *fence),
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Christian König
Reviewed-byAm 13.10.2017 um 16:06 schrieb Steven Rostedt:
Quoted 10 lines
From: Steven Rostedt (VMware) <[email protected]>
Commit
e941759c74("fence: dma-buf cross-device synchronization") added trace eventfence_annotate_wait_on, but never used it. It was renamed todma_fence_annotate_wait_onby commitf54d186700("dma-buf: Rename struct fence todma_fence") but still not used. As defined trace events have data structures and functions created for them, it is a waste of memory if they are not used. Remove the unused trace event.Signed-off-by Steven Rostedt (VMware) <[email protected]>
Quoted 68 lines
---
Index:linux-trace.git/drivers/dma-buf/dma-fence.c
===================================================================drivers/dma-buf/dma-fence.c +0
-1@@ -27,7 +27,6 @@#define CREATE_TRACE_POINTS #include <trace/events/dma_fence.h> -EXPORT_TRACEPOINT_SYMBOL (dma_fence_annotate_wait_on);EXPORT_TRACEPOINT_SYMBOL (dma_fence_emit);EXPORT_TRACEPOINT_SYMBOL (dma_fence_enable_signal);Index:
linux-trace.git/include/trace/events/dma_fence.h
===================================================================include/trace/events/dma_fence.h +0
-40@@ -8,46 +8,6 @@struct dma_fence ; -TRACE_EVENT (dma_fence_annotate_wait_on, - -/* fence: the fence waiting on f1, f1: the fence to be waited on. */ - TP_PROTO(struct dma_fence *fence, struct dma_fence *f1), - -TP_ARGS (fence, f1), - -TP_STRUCT__entry ( - __string(driver, fence->ops->get_driver_name(fence)) - __string(timeline, fence->ops->get_timeline_name(fence)) - __field(unsigned int, context) - __field(unsigned int, seqno) - - __string(waiting_driver, f1->ops->get_driver_name(f1)) - __string(waiting_timeline, f1->ops->get_timeline_name(f1)) - __field(unsigned int, waiting_context) - __field(unsigned int, waiting_seqno) - ), - -TP_fast_assign ( - __assign_str(driver, fence->ops->get_driver_name(fence)) - __assign_str(timeline, fence->ops->get_timeline_name(fence)) - __entry->context = fence->context; - __entry->seqno = fence->seqno; - - __assign_str(waiting_driver, f1->ops->get_driver_name(f1)) - __assign_str(waiting_timeline, f1->ops->get_timeline_name(f1)) - __entry->waiting_context = f1->context; - __entry->waiting_seqno = f1->seqno; - - ), - -TP_printk ("driver=%s timeline=%s context=%u seqno=%u " \ -"waits on driver=%s timeline=%s context=%u seqno=%u" , -__get_str (driver),__get_str (timeline), __entry->context, - __entry->seqno, -__get_str (waiting_driver),__get_str (waiting_timeline), - __entry->waiting_context, __entry->waiting_seqno) -); - DECLARE_EVENT_CLASS(dma_fence, TP_PROTO(struct dma_fence *fence),_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 10 lines · Christian König
Am 13.10.2017 um 16:06 schrieb Steven Rostedt:
Quoted 9 lines
From: Steven Rostedt (VMware) <[email protected]>
Commit
e941759c74("fence: dma-buf cross-device synchronization") added trace eventfence_annotate_wait_on, but never used it. It was renamed todma_fence_annotate_wait_onby commitf54d186700("dma-buf: Rename struct fence todma_fence") but still not used. As defined trace events have data structures and functions created for them, it is a waste of memory if they are not used. Remove the unused trace event.
Quoted 3 lines
Quoted 1 line
Signed-off-by Steven Rostedt (VMware) <[email protected]>Reviewed-by Christian König <[email protected]>
Since you have commit rights to drm-misc I assume you'll push this too.
Thanks, Daniel
Quoted 66 lines
Quoted 64 lines
---
Index:linux-trace.git/drivers/dma-buf/dma-fence.c
===================================================================drivers/dma-buf/dma-fence.c +0
-1@@ -27,7 +27,6 @@#define CREATE_TRACE_POINTS #include <trace/events/dma_fence.h> -EXPORT_TRACEPOINT_SYMBOL (dma_fence_annotate_wait_on);EXPORT_TRACEPOINT_SYMBOL (dma_fence_emit);EXPORT_TRACEPOINT_SYMBOL (dma_fence_enable_signal);Index:
linux-trace.git/include/trace/events/dma_fence.h
===================================================================include/trace/events/dma_fence.h +0
-40@@ -8,46 +8,6 @@struct dma_fence ; -TRACE_EVENT (dma_fence_annotate_wait_on, - -/* fence: the fence waiting on f1, f1: the fence to be waited on. */ - TP_PROTO(struct dma_fence *fence, struct dma_fence *f1), - -TP_ARGS (fence, f1), - -TP_STRUCT__entry ( - __string(driver, fence->ops->get_driver_name(fence)) - __string(timeline, fence->ops->get_timeline_name(fence)) - __field(unsigned int, context) - __field(unsigned int, seqno) - - __string(waiting_driver, f1->ops->get_driver_name(f1)) - __string(waiting_timeline, f1->ops->get_timeline_name(f1)) - __field(unsigned int, waiting_context) - __field(unsigned int, waiting_seqno) - ), - -TP_fast_assign ( - __assign_str(driver, fence->ops->get_driver_name(fence)) - __assign_str(timeline, fence->ops->get_timeline_name(fence)) - __entry->context = fence->context; - __entry->seqno = fence->seqno; - - __assign_str(waiting_driver, f1->ops->get_driver_name(f1)) - __assign_str(waiting_timeline, f1->ops->get_timeline_name(f1)) - __entry->waiting_context = f1->context; - __entry->waiting_seqno = f1->seqno; - - ), - -TP_printk ("driver=%s timeline=%s context=%u seqno=%u " \ -"waits on driver=%s timeline=%s context=%u seqno=%u" , -__get_str (driver),__get_str (timeline), __entry->context, - __entry->seqno, -__get_str (waiting_driver),__get_str (waiting_timeline), - __entry->waiting_context, __entry->waiting_seqno) -); - DECLARE_EVENT_CLASS(dma_fence, TP_PROTO(struct dma_fence *fence),_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Steven Rostedt
maintainerQuoted 11 lines · On Mon, 16 Oct 2017 11:15:45 +0200 Daniel Vetter <[email protected]> wrote:
Quoted 10 lines · Christian König
Am 13.10.2017 um 16:06 schrieb Steven Rostedt:
Quoted 9 lines
From: Steven Rostedt (VMware) <[email protected]>
Commit
e941759c74("fence: dma-buf cross-device synchronization") added trace eventfence_annotate_wait_on, but never used it. It was renamed todma_fence_annotate_wait_onby commitf54d186700("dma-buf: Rename struct fence todma_fence") but still not used. As defined trace events have data structures and functions created for them, it is a waste of memory if they are not used. Remove the unused trace event.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Steven Rostedt (VMware) <[email protected]>Reviewed-by Christian König <[email protected]>Since you have commit rights to drm-misc I assume you'll push this too.
Will it cause conflict if I pull it through my tree? It's just removing unused traecpoints. I added it to my tree already (but haven't pushed it to linux-next yet), with the Reviewed by from Christian. Is that OK? It shouldn't cause any merge conflicts that Linus can't handle.
-- Steve
Hi Steven,
Quoted 18 lines · Steven Rostedt
Quoted 15 lines · On Mon, 16 Oct 2017 11:15:45 +0200 Daniel Vetter <[email protected]> wrote:
Quoted 13 lines · Christian König
Am 13.10.2017 um 16:06 schrieb Steven Rostedt:
Quoted 10 lines
From: Steven Rostedt (VMware) <[email protected]>
Commit
e941759c74("fence: dma-buf cross-device synchronization") added trace eventfence_annotate_wait_on, but never used it. It was renamed todma_fence_annotate_wait_onby commitf54d186700("dma-buf: Rename struct fence todma_fence") but still not used. As defined trace events have data structures and functions created for them, it is a waste of memory if they are not used. Remove the unused trace event.Signed-off-by Steven Rostedt (VMware) <[email protected]>Reviewed-by Christian König <[email protected]>
Quoted 7 lines
Quoted 2 lines
Since you have commit rights to drm-misc I assume you'll push this too.
Will it cause conflict if I pull it through my tree? It's just removing unused traecpoints. I added it to my tree already (but haven't pushed it to linux-next yet), with the Reviewed by from Christian. Is that OK? It shouldn't cause any merge conflicts that Linus can't handle.
I suspect it should be ok; please do feel free to add my
if you wish :)
Quoted 6 lines
-- Steve
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Best,
Sumit.
Steven Rostedt
maintainerQuoted 3 lines · On Mon, 16 Oct 2017 20:49:11 +0530 Sumit Semwal <[email protected]> wrote:
I suspect it should be ok; please do feel free to add my
Acked-by Sumit Semwal <[email protected]>if you wish :)
Done. Thanks!
-- Steve
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel