From: Lai Jiangshan <laijs@cn.fujitsu.com>
To: Steven Rostedt <rostedt@goodmis.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/3]trace-cmd: remove dead code
Date: Thu, 10 Mar 2011 17:57:56 +0800 [thread overview]
Message-ID: <4D78A0A4.1040001@cn.fujitsu.com> (raw)
filter_cpu related code is totally dead.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
trace-read.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/trace-read.c b/trace-read.c
index 0e9ced8..1cd9bd3 100644
--- a/trace-read.c
+++ b/trace-read.c
@@ -73,7 +73,6 @@ static const char *input_file;
static int multi_inputs;
static int max_file_size;
-static int filter_cpu = -1;
static int *filter_cpus;
static int nr_filter_cpus;
@@ -619,10 +618,6 @@ get_next_record(struct handle_list *handles, int *next_cpu)
record = tracecmd_read_data(handles->handle, next_cpu);
else
record = NULL;
-
- } else if (filter_cpu >= 0) {
- cpu = filter_cpu;
- record = tracecmd_read_data(handles->handle, cpu);
} else
record = tracecmd_read_next_data(handles->handle, &cpu);
@@ -963,10 +958,7 @@ void trace_report (int argc, char **argv)
case 0:
switch(option_index) {
case 0: /* cpu */
- if (filter_cpu)
- add_cpu(optarg);
- else
- filter_cpu = atoi(optarg);
+ add_cpu(optarg);
break;
case 1: /* events */
print_events = 1;
--
1.7.4
next reply other threads:[~2011-03-10 9:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-10 9:57 Lai Jiangshan [this message]
2011-03-10 14:53 ` [PATCH 1/3]trace-cmd: remove dead code Steven Rostedt
2011-03-14 2:30 ` Lai Jiangshan
2011-03-14 13:28 ` Steven Rostedt
2011-03-14 2:39 ` [PATCH 1/3 V2]trace-cmd: " Lai Jiangshan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D78A0A4.1040001@cn.fujitsu.com \
--to=laijs@cn.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.