All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH trace-cmd 1/3] parse-events: Add support for printing short fields.
@ 2011-03-09 23:58 David Sharp
  2011-03-09 23:58 ` [PATCH trace-cmd 2/3] parse-events: support additional operators: '!', '~', and '!=' David Sharp
  2011-03-09 23:58 ` [PATCH trace-cmd 3/3] Revert "trace-cmd: Use conditional assignment of CC and AR" David Sharp
  0 siblings, 2 replies; 26+ messages in thread
From: David Sharp @ 2011-03-09 23:58 UTC (permalink / raw)
  To: linux-kernel, rostedt; +Cc: mrubin, David Sharp

Handle "%hd" etc. in pretty_print()

Signed-off-by: David Sharp <dhsharp@google.com>
Google-Bug-Id: 3501052
---
 parse-events.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/parse-events.c b/parse-events.c
index 3d59d92..bfb7ff5 100644
--- a/parse-events.c
+++ b/parse-events.c
@@ -3607,6 +3607,9 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event
 			case '#':
 				/* FIXME: need to handle properly */
 				goto cont_process;
+			case 'h':
+				ls--;
+				goto cont_process;
 			case 'l':
 				ls++;
 				goto cont_process;
@@ -3687,6 +3690,18 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event
 						strcpy(format, "0x%llx");
 				}
 				switch (ls) {
+				case -2:
+					if (len_as_arg)
+						trace_seq_printf(s, format, len_arg, (char)val);
+					else
+						trace_seq_printf(s, format, (char)val);
+					break;
+				case -1:
+					if (len_as_arg)
+						trace_seq_printf(s, format, len_arg, (short)val);
+					else
+						trace_seq_printf(s, format, (short)val);
+					break;
 				case 0:
 					if (len_as_arg)
 						trace_seq_printf(s, format, len_arg, (int)val);
-- 
1.7.3.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2011-03-10 21:30 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-09 23:58 [PATCH trace-cmd 1/3] parse-events: Add support for printing short fields David Sharp
2011-03-09 23:58 ` [PATCH trace-cmd 2/3] parse-events: support additional operators: '!', '~', and '!=' David Sharp
2011-03-09 23:58 ` [PATCH trace-cmd 3/3] Revert "trace-cmd: Use conditional assignment of CC and AR" David Sharp
2011-03-10  1:21   ` Steven Rostedt
2011-03-10  1:28     ` Steven Rostedt
2011-03-10  1:29       ` Darren Hart
2011-03-10  1:27   ` Darren Hart
2011-03-10  1:36     ` Steven Rostedt
2011-03-10  1:58       ` Darren Hart
2011-03-10  2:27         ` David Sharp
2011-03-10  2:51           ` Steven Rostedt
2011-03-10  3:26             ` Steven Rostedt
2011-03-10  5:25               ` David Sharp
2011-03-10  6:46                 ` Darren Hart
2011-03-10 13:02                   ` Steven Rostedt
2011-03-10  6:41               ` Darren Hart
2011-03-10 13:07                 ` Steven Rostedt
2011-03-10  6:34             ` Darren Hart
2011-03-10  6:32           ` Darren Hart
2011-03-10  6:43           ` Darren Hart
2011-03-10 13:11             ` Steven Rostedt
2011-03-10 17:50               ` Darren Hart
2011-03-10 18:11                 ` Steven Rostedt
2011-03-10 21:11                   ` [PATCH trace-cmd v2] trace-cmd: allow setting CC and AR, or CROSS_COMPILE from command line David Sharp
2011-03-10 21:30                     ` Steven Rostedt
2011-03-10  2:42         ` [PATCH trace-cmd 3/3] Revert "trace-cmd: Use conditional assignment of CC and AR" Steven Rostedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.