Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf record: Remove -f/--force option

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>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
4a4d371a 563aecb2

+6 -14
+2 -2
tools/perf/Documentation/examples.txt
··· 66 66 well. For example the page allocations done by a 'git gc' can be 67 67 captured the following way: 68 68 69 - titan:~/git> perf record -f -e kmem:mm_page_alloc -c 1 ./git gc 69 + titan:~/git> perf record -e kmem:mm_page_alloc -c 1 ./git gc 70 70 Counting objects: 1148, done. 71 71 Delta compression using up to 2 threads. 72 72 Compressing objects: 100% (450/450), done. ··· 120 120 allocations - to see precisely what kind of page allocations there 121 121 are: 122 122 123 - titan:~/git> perf record -f -g -e kmem:mm_page_alloc -c 1 ./git gc 123 + titan:~/git> perf record -g -e kmem:mm_page_alloc -c 1 ./git gc 124 124 Counting objects: 1148, done. 125 125 Delta compression using up to 2 threads. 126 126 Compressing objects: 100% (450/450), done.
-4
tools/perf/Documentation/perf-record.txt
··· 70 70 --no-delay:: 71 71 Collect data without buffering. 72 72 73 - -f:: 74 - --force:: 75 - Overwrite existing data file. (deprecated) 76 - 77 73 -c:: 78 74 --count=:: 79 75 Event period to sample.
+1 -1
tools/perf/builtin-kmem.c
··· 708 708 static int __cmd_record(int argc, const char **argv) 709 709 { 710 710 const char * const record_args[] = { 711 - "record", "-a", "-R", "-f", "-c", "1", 711 + "record", "-a", "-R", "-c", "1", 712 712 "-e", "kmem:kmalloc", 713 713 "-e", "kmem:kmalloc_node", 714 714 "-e", "kmem:kfree",
+1 -1
tools/perf/builtin-lock.c
··· 878 878 static int __cmd_record(int argc, const char **argv) 879 879 { 880 880 const char *record_args[] = { 881 - "record", "-R", "-f", "-m", "1024", "-c", "1", 881 + "record", "-R", "-m", "1024", "-c", "1", 882 882 }; 883 883 unsigned int rec_argc, i, j; 884 884 const char **rec_argv;
-3
tools/perf/builtin-record.c
··· 74 74 int realtime_prio; 75 75 bool no_buildid; 76 76 bool no_buildid_cache; 77 - bool force; 78 77 long samples; 79 78 off_t post_processing_offset; 80 79 }; ··· 855 856 "system-wide collection from all CPUs"), 856 857 OPT_STRING('C', "cpu", &record.opts.target.cpu_list, "cpu", 857 858 "list of cpus to monitor"), 858 - OPT_BOOLEAN('f', "force", &record.force, 859 - "overwrite existing data file (deprecated)"), 860 859 OPT_U64('c', "count", &record.opts.user_interval, "event period to sample"), 861 860 OPT_STRING('o', "output", &record.output_name, "file", 862 861 "output file name"),
-1
tools/perf/builtin-sched.c
··· 1632 1632 "record", 1633 1633 "-a", 1634 1634 "-R", 1635 - "-f", 1636 1635 "-m", "1024", 1637 1636 "-c", "1", 1638 1637 "-e", "sched:sched_switch",
+2 -2
tools/perf/builtin-timechart.c
··· 1005 1005 { 1006 1006 #ifdef SUPPORT_OLD_POWER_EVENTS 1007 1007 const char * const record_old_args[] = { 1008 - "record", "-a", "-R", "-f", "-c", "1", 1008 + "record", "-a", "-R", "-c", "1", 1009 1009 "-e", "power:power_start", 1010 1010 "-e", "power:power_end", 1011 1011 "-e", "power:power_frequency", ··· 1014 1014 }; 1015 1015 #endif 1016 1016 const char * const record_new_args[] = { 1017 - "record", "-a", "-R", "-f", "-c", "1", 1017 + "record", "-a", "-R", "-c", "1", 1018 1018 "-e", "power:cpu_frequency", 1019 1019 "-e", "power:cpu_idle", 1020 1020 "-e", "sched:sched_wakeup",