]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
perf record: Rename --no-delay to --no-buffering
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 14 Jan 2014 20:52:14 +0000 (17:52 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 14 Jan 2014 20:57:04 +0000 (17:57 -0300)
That is how the option summary describes it and so that we can free
--delay to replace --initial-delay and then be consistent with stat's
--delay equivalent option.

Suggested-by: Ingo Molnar <mingo@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-f8hd2010uhjl2zzb34hepbmi@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-record.txt
tools/perf/builtin-record.c
tools/perf/builtin-trace.c
tools/perf/perf.h
tools/perf/tests/open-syscall-tp-fields.c
tools/perf/tests/perf-record.c
tools/perf/util/evsel.c

index 82bffac036e1d95e792e13fda38bb4c73a43e5b0..3a35a8523e6df03aa8a5e2a0777c540085403627 100644 (file)
@@ -68,8 +68,7 @@ OPTIONS
 --realtime=::
        Collect data with this RT SCHED_FIFO priority.
 
--D::
---no-delay::
+--no-buffering::
        Collect data without buffering.
 
 -c::
index 07d4cf8d3fd3058f184209a170aa64512c18c1e2..78e790f4c54f07aea3bd09fe9cd093f913fb6e5f 100644 (file)
@@ -838,7 +838,7 @@ const struct option record_options[] = {
                    "record events on existing thread id"),
        OPT_INTEGER('r', "realtime", &record.realtime_prio,
                    "collect data with this RT SCHED_FIFO priority"),
-       OPT_BOOLEAN('D', "no-delay", &record.opts.no_delay,
+       OPT_BOOLEAN(0, "no-buffering", &record.opts.no_buffering,
                    "collect data without buffering"),
        OPT_BOOLEAN('R', "raw-samples", &record.opts.raw_samples,
                    "collect raw sample records from all opened counters"),
index 4bd44aba343ea50c896d581bf5a7b399559a71d6..896f27047ed6178fd6aed5566863fb4f4c251e84 100644 (file)
@@ -2258,7 +2258,7 @@ int cmd_trace(int argc, const char **argv, const char *prefix __maybe_unused)
                        },
                        .user_freq     = UINT_MAX,
                        .user_interval = ULLONG_MAX,
-                       .no_delay      = true,
+                       .no_buffering  = true,
                        .mmap_pages    = 1024,
                },
                .output = stdout,
index af1ce6e14a934b1b1a3d8f4eb2d03707c4d511a0..3c2f213e979d45d5d1d2c701a6f2b8875e36e13a 100644 (file)
@@ -252,7 +252,7 @@ struct record_opts {
        int          call_graph;
        bool         group;
        bool         inherit_stat;
-       bool         no_delay;
+       bool         no_buffering;
        bool         no_inherit;
        bool         no_inherit_set;
        bool         no_samples;
index 5a016f66f5d27a6cd085ccc108b34dbba9e5aa6d..c505ef2af245901639a04e453432b78c5adb5f8b 100644 (file)
@@ -11,10 +11,10 @@ int test__syscall_open_tp_fields(void)
                        .uid = UINT_MAX,
                        .uses_mmap = true,
                },
-               .no_delay   = true,
-               .freq       = 1,
-               .mmap_pages = 256,
-               .raw_samples = true,
+               .no_buffering = true,
+               .freq         = 1,
+               .mmap_pages   = 256,
+               .raw_samples  = true,
        };
        const char *filename = "/etc/passwd";
        int flags = O_RDONLY | O_DIRECTORY;
index 39cc7c3c0d0c0bd56d39cd98e0cd949abf243589..aca1a83dd13a946e8f47456725c3b725cfb4b25c 100644 (file)
@@ -39,9 +39,9 @@ int test__PERF_RECORD(void)
                        .uid = UINT_MAX,
                        .uses_mmap = true,
                },
-               .no_delay   = true,
-               .freq       = 10,
-               .mmap_pages = 256,
+               .no_buffering = true,
+               .freq         = 10,
+               .mmap_pages   = 256,
        };
        cpu_set_t cpu_mask;
        size_t cpu_mask_size = sizeof(cpu_mask);
index cd4630abfa4362ad5b19314b965accc8820fab54..22e18a26b7e6c778aefe5fb44c0cd518b5ff798d 100644 (file)
@@ -627,7 +627,7 @@ void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts)
        if (opts->sample_address)
                perf_evsel__set_sample_bit(evsel, DATA_SRC);
 
-       if (opts->no_delay) {
+       if (opts->no_buffering) {
                attr->watermark = 0;
                attr->wakeup_events = 1;
        }