diff options
| author | Steven Rostedt <srostedt@redhat.com> | 2010-09-13 14:42:43 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2010-09-13 21:24:18 -0400 |
| commit | c5c11fdf5eaf5caa5cd2452f5a8d058106c11db3 (patch) | |
| tree | 8795363690452814ef11c226ca2e0201f1e3f583 | |
| parent | 6c0133decc950e6d499260567f0a8482384a8df0 (diff) | |
trace-cmd: Remove cpus from tracecmd_create_init() parameters
The tracecmd_create_init() function never used the cpus variable
that was passed in. It is not needed, thus it is removed.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| -rw-r--r-- | trace-cmd.c | 2 | ||||
| -rw-r--r-- | trace-cmd.h | 2 | ||||
| -rw-r--r-- | trace-output.c | 16 |
3 files changed, 10 insertions, 10 deletions
diff --git a/trace-cmd.c b/trace-cmd.c index 6cfdfdc..7afc5ac 100644 --- a/trace-cmd.c +++ b/trace-cmd.c | |||
| @@ -1224,7 +1224,7 @@ static void setup_network(void) | |||
| 1224 | } | 1224 | } |
| 1225 | 1225 | ||
| 1226 | /* Now create the handle through this socket */ | 1226 | /* Now create the handle through this socket */ |
| 1227 | handle = tracecmd_create_init_fd(sfd, cpu_count); | 1227 | handle = tracecmd_create_init_fd(sfd); |
| 1228 | 1228 | ||
| 1229 | /* OK, we are all set, let'r rip! */ | 1229 | /* OK, we are all set, let'r rip! */ |
| 1230 | } | 1230 | } |
diff --git a/trace-cmd.h b/trace-cmd.h index dda4d0b..d8ebccd 100644 --- a/trace-cmd.h +++ b/trace-cmd.h | |||
| @@ -159,7 +159,7 @@ extern __thread struct tracecmd_input *tracecmd_curr_thread_handle; | |||
| 159 | struct tracecmd_output *tracecmd_create_file_latency(const char *output_file, int cpus); | 159 | struct tracecmd_output *tracecmd_create_file_latency(const char *output_file, int cpus); |
| 160 | struct tracecmd_output *tracecmd_create_file(const char *output_file, | 160 | struct tracecmd_output *tracecmd_create_file(const char *output_file, |
| 161 | int cpus, char * const *cpu_data_files); | 161 | int cpus, char * const *cpu_data_files); |
| 162 | struct tracecmd_output *tracecmd_create_init_fd(int fd, int cpus); | 162 | struct tracecmd_output *tracecmd_create_init_fd(int fd); |
| 163 | void tracecmd_output_close(struct tracecmd_output *handle); | 163 | void tracecmd_output_close(struct tracecmd_output *handle); |
| 164 | struct tracecmd_output *tracecmd_copy(struct tracecmd_input *ihandle, | 164 | struct tracecmd_output *tracecmd_copy(struct tracecmd_input *ihandle, |
| 165 | const char *file); | 165 | const char *file); |
diff --git a/trace-output.c b/trace-output.c index 0730a1e..c34e8b2 100644 --- a/trace-output.c +++ b/trace-output.c | |||
| @@ -521,7 +521,7 @@ static int read_ftrace_printk(struct tracecmd_output *handle) | |||
| 521 | } | 521 | } |
| 522 | 522 | ||
| 523 | static struct tracecmd_output * | 523 | static struct tracecmd_output * |
| 524 | create_file_fd(int fd, int cpus, struct tracecmd_input *ihandle) | 524 | create_file_fd(int fd, struct tracecmd_input *ihandle) |
| 525 | { | 525 | { |
| 526 | struct tracecmd_output *handle; | 526 | struct tracecmd_output *handle; |
| 527 | unsigned long long endian8; | 527 | unsigned long long endian8; |
| @@ -629,7 +629,7 @@ create_file_fd(int fd, int cpus, struct tracecmd_input *ihandle) | |||
| 629 | return NULL; | 629 | return NULL; |
| 630 | } | 630 | } |
| 631 | 631 | ||
| 632 | static struct tracecmd_output *create_file(const char *output_file, int cpus, | 632 | static struct tracecmd_output *create_file(const char *output_file, |
| 633 | struct tracecmd_input *ihandle) | 633 | struct tracecmd_input *ihandle) |
| 634 | { | 634 | { |
| 635 | struct tracecmd_output *handle; | 635 | struct tracecmd_output *handle; |
| @@ -639,7 +639,7 @@ static struct tracecmd_output *create_file(const char *output_file, int cpus, | |||
| 639 | if (fd < 0) | 639 | if (fd < 0) |
| 640 | return NULL; | 640 | return NULL; |
| 641 | 641 | ||
| 642 | handle = create_file_fd(fd, cpus, ihandle); | 642 | handle = create_file_fd(fd, ihandle); |
| 643 | if (!handle) { | 643 | if (!handle) { |
| 644 | close(fd); | 644 | close(fd); |
| 645 | unlink(output_file); | 645 | unlink(output_file); |
| @@ -673,7 +673,7 @@ struct tracecmd_output *tracecmd_create_file_latency(const char *output_file, in | |||
| 673 | struct tracecmd_output *handle; | 673 | struct tracecmd_output *handle; |
| 674 | char *path; | 674 | char *path; |
| 675 | 675 | ||
| 676 | handle = create_file(output_file, cpus, NULL); | 676 | handle = create_file(output_file, NULL); |
| 677 | if (!handle) | 677 | if (!handle) |
| 678 | return NULL; | 678 | return NULL; |
| 679 | 679 | ||
| @@ -850,7 +850,7 @@ struct tracecmd_output *tracecmd_create_file(const char *output_file, | |||
| 850 | { | 850 | { |
| 851 | struct tracecmd_output *handle; | 851 | struct tracecmd_output *handle; |
| 852 | 852 | ||
| 853 | handle = create_file(output_file, cpus, NULL); | 853 | handle = create_file(output_file, NULL); |
| 854 | if (!handle) | 854 | if (!handle) |
| 855 | return NULL; | 855 | return NULL; |
| 856 | 856 | ||
| @@ -861,11 +861,11 @@ struct tracecmd_output *tracecmd_create_file(const char *output_file, | |||
| 861 | } | 861 | } |
| 862 | 862 | ||
| 863 | struct tracecmd_output * | 863 | struct tracecmd_output * |
| 864 | tracecmd_create_init_fd(int fd, int cpus) | 864 | tracecmd_create_init_fd(int fd) |
| 865 | { | 865 | { |
| 866 | struct tracecmd_output *handle; | 866 | struct tracecmd_output *handle; |
| 867 | 867 | ||
| 868 | handle = create_file_fd(fd, cpus, NULL); | 868 | handle = create_file_fd(fd, NULL); |
| 869 | if (!handle) | 869 | if (!handle) |
| 870 | return NULL; | 870 | return NULL; |
| 871 | 871 | ||
| @@ -886,7 +886,7 @@ struct tracecmd_output *tracecmd_copy(struct tracecmd_input *ihandle, | |||
| 886 | { | 886 | { |
| 887 | struct tracecmd_output *handle; | 887 | struct tracecmd_output *handle; |
| 888 | 888 | ||
| 889 | handle = create_file(file, tracecmd_cpus(ihandle), ihandle); | 889 | handle = create_file(file, ihandle); |
| 890 | if (!handle) | 890 | if (!handle) |
| 891 | return NULL; | 891 | return NULL; |
| 892 | 892 | ||
