|
|
@@ -589,10 +589,10 @@ void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts)
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
- * We default some events to a 1 default interval. But keep
|
|
|
+ * We default some events to have a default interval. But keep
|
|
|
* it a weak assumption overridable by the user.
|
|
|
*/
|
|
|
- if (!attr->sample_period || (opts->user_freq != UINT_MAX &&
|
|
|
+ if (!attr->sample_period || (opts->user_freq != UINT_MAX ||
|
|
|
opts->user_interval != ULLONG_MAX)) {
|
|
|
if (opts->freq) {
|
|
|
perf_evsel__set_sample_bit(evsel, PERIOD);
|