perf: Convert perf header attrs into attr events
[deliverable/linux.git] / tools / perf / builtin-record.c
index d4464f7fcea5b0e401491df15e1c4b52c182deb0..289d9cf3bf73c927f601a69285e726a3be5179b8 100644 (file)
@@ -584,6 +584,16 @@ static int __cmd_record(int argc, const char **argv)
 
        post_processing_offset = lseek(output, 0, SEEK_CUR);
 
+       if (pipe_output) {
+               err = event__synthesize_attrs(&session->header,
+                                             process_synthesized_event,
+                                             session);
+               if (err < 0) {
+                       pr_err("Couldn't synthesize attrs.\n");
+                       return err;
+               }
+       }
+
        err = event__synthesize_kernel_mmap(process_synthesized_event,
                                            session, "_text");
        if (err < 0)
This page took 0.027125 seconds and 5 git commands to generate.