Merge "Simpleperf: Fix perf_data_path config"
diff --git a/simpleperf/scripts/pprof_proto_generator.py b/simpleperf/scripts/pprof_proto_generator.py
index ff2a530..a261c00 100644
--- a/simpleperf/scripts/pprof_proto_generator.py
+++ b/simpleperf/scripts/pprof_proto_generator.py
@@ -265,8 +265,8 @@
             config['binary_cache_dir'] = None
         else:
             self.lib.SetSymfs(config['binary_cache_dir'])
-        if config.get('record_file'):
-            self.lib.SetRecordFile(config['record_file'])
+        if config.get('perf_data_path'):
+            self.lib.SetRecordFile(config['perf_data_path'])
         kallsyms = 'binary_cache/kallsyms'
         if os.path.isfile(kallsyms):
             self.lib.SetKallsymsFile(kallsyms)