[PATCH] add input subsystem instrumentation

Pierre-Marc Fournier <[email protected]> Thu, 1 Nov 2007 18:20:30 -0400
Newsgroups gmane.linux.kernel.tracing
Message-ID <1193955632-13079-1-git-send-email-pierre-marc.fournier@polymtl.ca>
Allows tracing of all input events that pass through the input subsystem.

Signed-off-by: Pierre-Marc Fournier <[email protected]>
---
 drivers/input/input.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/input/input.c b/drivers/input/input.c
index 5fe7555..c02632d 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -50,6 +50,8 @@ void input_event(struct input_dev *dev, unsigned int type, unsigned int code, in
 	if (type > EV_MAX || !test_bit(type, dev->evbit))
 		return;
 
+	trace_mark(input_event, "type %u code %u value %d", type, code, value);
+
 	add_input_randomness(type, code, value);
 
 	switch (type) {
-- 
1.5.3.4