diff options
author | Mark Brown <broonie@kernel.org> | 2018-05-30 10:50:52 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-05-30 10:50:52 +0100 |
commit | 9547b7a4a9e1a159ceb6a79d5206b88150ffbf32 (patch) | |
tree | 2c1e947349c618fdfcbe2ad4cd8cdaed78bd19ba /tools/perf/builtin-record.c | |
parent | 71d9e492f509b2374f4da3fcb74ba0f88590b43c (diff) | |
parent | 2c2b15bb0e8872fe2914785ccb276c304417911d (diff) |
Merge tag 'v4.14.45' into linux-linaro-lsk-v4.14
This is the 4.14.45 stable release
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r-- | tools/perf/builtin-record.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index b205c1340456..3b570e808b31 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -926,6 +926,15 @@ static int __cmd_record(struct record *rec, int argc, const char **argv) } } + /* + * If we have just single event and are sending data + * through pipe, we need to force the ids allocation, + * because we synthesize event name through the pipe + * and need the id for that. + */ + if (data->is_pipe && rec->evlist->nr_entries == 1) + rec->opts.sample_id = true; + if (record__open(rec) != 0) { err = -1; goto out_child; |