perf record: Remove -f/--force option
authorJiri Olsa <jolsa@redhat.com>
Wed, 5 Jun 2013 11:37:21 +0000 (13:37 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 8 Jul 2013 20:37:25 +0000 (17:37 -0300)
It no longer have any affect on the processing and is marked as obsolete
anyway.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-tvwyspiqr4getzfib2lw06ty@git.kernel.org
Link: http://lkml.kernel.org/r/1372307120-737-1-git-send-email-namhyung@kernel.org
[ combined patch removing the -f usage in various sub-commands, such as 'perf sched', etc, by Namhyung Kim ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/examples.txt
tools/perf/Documentation/perf-record.txt
tools/perf/builtin-kmem.c
tools/perf/builtin-lock.c
tools/perf/builtin-record.c
tools/perf/builtin-sched.c
tools/perf/builtin-timechart.c

index 77f952762426661615d3d0180ab2728010e6069f..a4e3921564883a53b317140032a92127b96988a8 100644 (file)
@@ -66,7 +66,7 @@ Furthermore, these tracepoints can be used to sample the workload as
 well. For example the page allocations done by a 'git gc' can be
 captured the following way:
 
- titan:~/git> perf record -f -e kmem:mm_page_alloc -c 1 ./git gc
+ titan:~/git> perf record -e kmem:mm_page_alloc -c 1 ./git gc
  Counting objects: 1148, done.
  Delta compression using up to 2 threads.
  Compressing objects: 100% (450/450), done.
@@ -120,7 +120,7 @@ Furthermore, call-graph sampling can be done too, of page
 allocations - to see precisely what kind of page allocations there
 are:
 
- titan:~/git> perf record -f -g -e kmem:mm_page_alloc -c 1 ./git gc
+ titan:~/git> perf record -g -e kmem:mm_page_alloc -c 1 ./git gc
  Counting objects: 1148, done.
  Delta compression using up to 2 threads.
  Compressing objects: 100% (450/450), done.
index 7e3258066bc9ddf13b627b954275f3d280622dfe..e297b74471b8a32e76912342f50f77534360ec87 100644 (file)
@@ -70,10 +70,6 @@ OPTIONS
 --no-delay::
        Collect data without buffering.
 
--f::
---force::
-       Overwrite existing data file. (deprecated)
-
 -c::
 --count=::
        Event period to sample.
index 46878daca5cc723b3200763e023744e87c7dc2fd..0259502638b47341cbd5c191391864b8f4df7dcf 100644 (file)
@@ -708,7 +708,7 @@ static int parse_line_opt(const struct option *opt __maybe_unused,
 static int __cmd_record(int argc, const char **argv)
 {
        const char * const record_args[] = {
-       "record", "-a", "-R", "-f", "-c", "1",
+       "record", "-a", "-R", "-c", "1",
        "-e", "kmem:kmalloc",
        "-e", "kmem:kmalloc_node",
        "-e", "kmem:kfree",
index 4258300697493ecdd2758c82a080834ed7f69dd6..76543a4a7a306fc3aa60c44f5ce33383e9fba081 100644 (file)
@@ -878,7 +878,7 @@ static int __cmd_report(void)
 static int __cmd_record(int argc, const char **argv)
 {
        const char *record_args[] = {
-               "record", "-R", "-f", "-m", "1024", "-c", "1",
+               "record", "-R", "-m", "1024", "-c", "1",
        };
        unsigned int rec_argc, i, j;
        const char **rec_argv;
index 2990570b5c6d8923fa02422883af1e540dcd5d7f..ecca62e27b28f87a8a6c6d6aadf2515b1267f07b 100644 (file)
@@ -74,7 +74,6 @@ struct perf_record {
        int                     realtime_prio;
        bool                    no_buildid;
        bool                    no_buildid_cache;
-       bool                    force;
        long                    samples;
        off_t                   post_processing_offset;
 };
@@ -856,8 +855,6 @@ const struct option record_options[] = {
                            "system-wide collection from all CPUs"),
        OPT_STRING('C', "cpu", &record.opts.target.cpu_list, "cpu",
                    "list of cpus to monitor"),
-       OPT_BOOLEAN('f', "force", &record.force,
-                       "overwrite existing data file (deprecated)"),
        OPT_U64('c', "count", &record.opts.user_interval, "event period to sample"),
        OPT_STRING('o', "output", &record.output_name, "file",
                    "output file name"),
index 2da2a6ca22bf602e8acc8a023bc939b1be53ce6d..fed9ae432c166d2f8d179bfb8a1fd15123112a7f 100644 (file)
@@ -1632,7 +1632,6 @@ static int __cmd_record(int argc, const char **argv)
                "record",
                "-a",
                "-R",
-               "-f",
                "-m", "1024",
                "-c", "1",
                "-e", "sched:sched_switch",
index ab4cf232b8522db25dfaeaf399c05790053d39c9..4536a92b18f3196d9fa532ad193184d3d39b7af8 100644 (file)
@@ -1005,7 +1005,7 @@ static int __cmd_record(int argc, const char **argv)
 {
 #ifdef SUPPORT_OLD_POWER_EVENTS
        const char * const record_old_args[] = {
-               "record", "-a", "-R", "-f", "-c", "1",
+               "record", "-a", "-R", "-c", "1",
                "-e", "power:power_start",
                "-e", "power:power_end",
                "-e", "power:power_frequency",
@@ -1014,7 +1014,7 @@ static int __cmd_record(int argc, const char **argv)
        };
 #endif
        const char * const record_new_args[] = {
-               "record", "-a", "-R", "-f", "-c", "1",
+               "record", "-a", "-R", "-c", "1",
                "-e", "power:cpu_frequency",
                "-e", "power:cpu_idle",
                "-e", "sched:sched_wakeup",