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>
--realtime=::
Collect data with this RT SCHED_FIFO priority.
--realtime=::
Collect data with this RT SCHED_FIFO priority.
Collect data without buffering.
-c::
Collect data without buffering.
-c::
"record events on existing thread id"),
OPT_INTEGER('r', "realtime", &record.realtime_prio,
"collect data with this RT SCHED_FIFO priority"),
"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"),
"collect data without buffering"),
OPT_BOOLEAN('R', "raw-samples", &record.opts.raw_samples,
"collect raw sample records from all opened counters"),
},
.user_freq = UINT_MAX,
.user_interval = ULLONG_MAX,
},
.user_freq = UINT_MAX,
.user_interval = ULLONG_MAX,
.mmap_pages = 1024,
},
.output = stdout,
.mmap_pages = 1024,
},
.output = stdout,
int call_graph;
bool group;
bool inherit_stat;
int call_graph;
bool group;
bool inherit_stat;
bool no_inherit;
bool no_inherit_set;
bool no_samples;
bool no_inherit;
bool no_inherit_set;
bool no_samples;
.uid = UINT_MAX,
.uses_mmap = true,
},
.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;
};
const char *filename = "/etc/passwd";
int flags = O_RDONLY | O_DIRECTORY;
.uid = UINT_MAX,
.uses_mmap = true,
},
.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);
};
cpu_set_t cpu_mask;
size_t cpu_mask_size = sizeof(cpu_mask);
if (opts->sample_address)
perf_evsel__set_sample_bit(evsel, DATA_SRC);
if (opts->sample_address)
perf_evsel__set_sample_bit(evsel, DATA_SRC);
+ if (opts->no_buffering) {
attr->watermark = 0;
attr->wakeup_events = 1;
}
attr->watermark = 0;
attr->wakeup_events = 1;
}