diff options
author | Maximilian Luz <luzmaximilian@gmail.com> | 2020-12-21 19:39:54 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-01-07 00:06:17 +0100 |
commit | 0d21bb8560ef6bd09cab873120f940a939ad3aec (patch) | |
tree | c8ba1a175c47fabab387bbb3aa435c85664bf612 /drivers/platform/surface/aggregator/controller.c | |
parent | 3a7081f610a0ff6385f38cf65a019383cd34bfdd (diff) | |
download | lwn-0d21bb8560ef6bd09cab873120f940a939ad3aec.tar.gz lwn-0d21bb8560ef6bd09cab873120f940a939ad3aec.zip |
platform/surface: aggregator: Add trace points
Add trace points to the Surface Aggregator subsystem core. These trace
points can be used to track packets, requests, and allocations. They are
further intended for debugging and testing/validation, specifically in
combination with the error injection capabilities introduced in the
subsequent commit.
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20201221183959.1186143-5-luzmaximilian@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
-rw-r--r-- | drivers/platform/surface/aggregator/controller.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/platform/surface/aggregator/controller.c b/drivers/platform/surface/aggregator/controller.c index 775a4509bece..5bcb59ed579d 100644 --- a/drivers/platform/surface/aggregator/controller.c +++ b/drivers/platform/surface/aggregator/controller.c @@ -32,6 +32,8 @@ #include "ssh_msgb.h" #include "ssh_request_layer.h" +#include "trace.h" + /* -- Safe counters. -------------------------------------------------------- */ @@ -568,6 +570,7 @@ static void __ssam_event_item_free_generic(struct ssam_event_item *item) */ static void ssam_event_item_free(struct ssam_event_item *item) { + trace_ssam_event_item_free(item); item->ops.free(item); } @@ -603,6 +606,8 @@ static struct ssam_event_item *ssam_event_item_alloc(size_t len, gfp_t flags) } item->event.length = len; + + trace_ssam_event_item_alloc(item, len); return item; } |