|
@@ -161,6 +161,7 @@ static void config_attr(struct perf_evsel *evsel, struct perf_evlist *evlist)
|
|
struct perf_event_attr *attr = &evsel->attr;
|
|
struct perf_event_attr *attr = &evsel->attr;
|
|
int track = !evsel->idx; /* only the first counter needs these */
|
|
int track = !evsel->idx; /* only the first counter needs these */
|
|
|
|
|
|
|
|
+ attr->disabled = 1;
|
|
attr->inherit = !no_inherit;
|
|
attr->inherit = !no_inherit;
|
|
attr->read_format = PERF_FORMAT_TOTAL_TIME_ENABLED |
|
|
attr->read_format = PERF_FORMAT_TOTAL_TIME_ENABLED |
|
|
PERF_FORMAT_TOTAL_TIME_RUNNING |
|
|
PERF_FORMAT_TOTAL_TIME_RUNNING |
|
|
@@ -671,6 +672,8 @@ static int __cmd_record(int argc, const char **argv)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ perf_evlist__enable(evsel_list);
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Let the child rip
|
|
* Let the child rip
|
|
*/
|
|
*/
|