diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-03-17 05:37:37 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-03-17 05:37:37 -0400 |
| commit | 4176935b58eeb636917e65a2c388e4607e36cce6 (patch) | |
| tree | dac4e0005cda5a3a5a313dde35bbac2877d9bd93 /kernel/trace/blktrace.c | |
| parent | c269fc8c537d761f36cb98e637ae934d9331a9d5 (diff) | |
| parent | 6adaad14d7d4d3ef31b4e2dc992b18b5da7c4eb3 (diff) | |
Merge branch 'tip/tracing/ftrace' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into tracing/ftrace
Diffstat (limited to 'kernel/trace/blktrace.c')
| -rw-r--r-- | kernel/trace/blktrace.c | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c index 1f32e4edf490..b171778e3863 100644 --- a/kernel/trace/blktrace.c +++ b/kernel/trace/blktrace.c | |||
| @@ -1027,7 +1027,9 @@ static int blk_log_action_seq(struct trace_seq *s, const struct blk_io_trace *t, | |||
| 1027 | 1027 | ||
| 1028 | static int blk_log_generic(struct trace_seq *s, const struct trace_entry *ent) | 1028 | static int blk_log_generic(struct trace_seq *s, const struct trace_entry *ent) |
| 1029 | { | 1029 | { |
| 1030 | const char *cmd = trace_find_cmdline(ent->pid); | 1030 | char cmd[TASK_COMM_LEN]; |
| 1031 | |||
| 1032 | trace_find_cmdline(ent->pid, cmd); | ||
| 1031 | 1033 | ||
| 1032 | if (t_sec(ent)) | 1034 | if (t_sec(ent)) |
| 1033 | return trace_seq_printf(s, "%llu + %u [%s]\n", | 1035 | return trace_seq_printf(s, "%llu + %u [%s]\n", |
| @@ -1057,19 +1059,30 @@ static int blk_log_remap(struct trace_seq *s, const struct trace_entry *ent) | |||
| 1057 | 1059 | ||
| 1058 | static int blk_log_plug(struct trace_seq *s, const struct trace_entry *ent) | 1060 | static int blk_log_plug(struct trace_seq *s, const struct trace_entry *ent) |
| 1059 | { | 1061 | { |
| 1060 | return trace_seq_printf(s, "[%s]\n", trace_find_cmdline(ent->pid)); | 1062 | char cmd[TASK_COMM_LEN]; |
| 1063 | |||
| 1064 | trace_find_cmdline(ent->pid, cmd); | ||
| 1065 | |||
| 1066 | return trace_seq_printf(s, "[%s]\n", cmd); | ||
| 1061 | } | 1067 | } |
| 1062 | 1068 | ||
| 1063 | static int blk_log_unplug(struct trace_seq *s, const struct trace_entry *ent) | 1069 | static int blk_log_unplug(struct trace_seq *s, const struct trace_entry *ent) |
| 1064 | { | 1070 | { |
| 1065 | return trace_seq_printf(s, "[%s] %llu\n", trace_find_cmdline(ent->pid), | 1071 | char cmd[TASK_COMM_LEN]; |
| 1066 | get_pdu_int(ent)); | 1072 | |
| 1073 | trace_find_cmdline(ent->pid, cmd); | ||
| 1074 | |||
| 1075 | return trace_seq_printf(s, "[%s] %llu\n", cmd, get_pdu_int(ent)); | ||
| 1067 | } | 1076 | } |
| 1068 | 1077 | ||
| 1069 | static int blk_log_split(struct trace_seq *s, const struct trace_entry *ent) | 1078 | static int blk_log_split(struct trace_seq *s, const struct trace_entry *ent) |
| 1070 | { | 1079 | { |
| 1080 | char cmd[TASK_COMM_LEN]; | ||
| 1081 | |||
| 1082 | trace_find_cmdline(ent->pid, cmd); | ||
| 1083 | |||
| 1071 | return trace_seq_printf(s, "%llu / %llu [%s]\n", t_sector(ent), | 1084 | return trace_seq_printf(s, "%llu / %llu [%s]\n", t_sector(ent), |
| 1072 | get_pdu_int(ent), trace_find_cmdline(ent->pid)); | 1085 | get_pdu_int(ent), cmd); |
| 1073 | } | 1086 | } |
| 1074 | 1087 | ||
| 1075 | /* | 1088 | /* |
