Re: [PATCH] add input subsystem instrumentation
Mathieu Desnoyers <[email protected]> Thu, 1 Nov 2007 22:28:53 -0400
| Newsgroups | gmane.linux.kernel.tracing |
|---|---|
| Message-ID | <20071102022853.GA29356@Krystal> |
merged. * Pierre-Marc Fournier ([email protected]) wrote: > 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 > -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68