|
@@ -854,7 +854,6 @@ static int __cmd_record(struct record *rec, int argc, const char **argv)
|
|
int status = 0;
|
|
int status = 0;
|
|
unsigned long waking = 0;
|
|
unsigned long waking = 0;
|
|
const bool forks = argc > 0;
|
|
const bool forks = argc > 0;
|
|
- struct machine *machine;
|
|
|
|
struct perf_tool *tool = &rec->tool;
|
|
struct perf_tool *tool = &rec->tool;
|
|
struct record_opts *opts = &rec->opts;
|
|
struct record_opts *opts = &rec->opts;
|
|
struct perf_data *data = &rec->data;
|
|
struct perf_data *data = &rec->data;
|
|
@@ -959,8 +958,6 @@ static int __cmd_record(struct record *rec, int argc, const char **argv)
|
|
goto out_child;
|
|
goto out_child;
|
|
}
|
|
}
|
|
|
|
|
|
- machine = &session->machines.host;
|
|
|
|
-
|
|
|
|
err = record__synthesize(rec, false);
|
|
err = record__synthesize(rec, false);
|
|
if (err < 0)
|
|
if (err < 0)
|
|
goto out_child;
|
|
goto out_child;
|
|
@@ -988,6 +985,7 @@ static int __cmd_record(struct record *rec, int argc, const char **argv)
|
|
* Let the child rip
|
|
* Let the child rip
|
|
*/
|
|
*/
|
|
if (forks) {
|
|
if (forks) {
|
|
|
|
+ struct machine *machine = &session->machines.host;
|
|
union perf_event *event;
|
|
union perf_event *event;
|
|
pid_t tgid;
|
|
pid_t tgid;
|
|
|
|
|