[PATCH v14 08/19] trace-cmd: --del the tracee address map into the guest's trace.dat file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The trace-cmd option "--proc-map" saves the address map of the traced
applications in the trace.dat file. It does not work if that option is
specified as guest command line parameter.

Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@xxxxxxxxx>
---
 tracecmd/trace-record.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c
index fd7ca82..a08ee52 100644
--- a/tracecmd/trace-record.c
+++ b/tracecmd/trace-record.c
@@ -3802,6 +3802,7 @@ enum {
 
 static void add_options(struct tracecmd_output *handle, struct common_record_context *ctx)
 {
+	struct buffer_instance *instance;
 	int type = 0;
 
 	if (ctx->date2ts) {
@@ -3818,6 +3819,9 @@ static void add_options(struct tracecmd_output *handle, struct common_record_con
 	add_option_hooks(handle);
 	add_uname(handle);
 	add_version(handle);
+	for_all_instances(instance) {
+		add_pid_maps(handle, instance);
+	}
 }
 
 static void write_guest_file(struct buffer_instance *instance)
@@ -3953,10 +3957,6 @@ static void record_data(struct common_record_context *ctx)
 		if (!no_top_instance() && !top_instance.msg_handle)
 			print_stat(&top_instance);
 
-		for_all_instances(instance) {
-			add_pid_maps(handle, instance);
-		}
-
 		tracecmd_append_cpu_data(handle, local_cpu_count, temp_files);
 
 		for (i = 0; i < max_cpu_count; i++)
-- 
2.23.0




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux