Blame SOURCES/ring_buffer_scope.patch

9e423b
--- ptdump-1.0.3/ptdump.c.orig
9e423b
+++ ptdump-1.0.3/ptdump.c
9e423b
@@ -502,6 +502,14 @@ cmd_ptdump(void)
9e423b
 		return;
9e423b
 	}
9e423b
 
9e423b
+	/* 
9e423b
+	 * Set the gdb scope to ensure that the appropriate ring_buffer 
9e423b
+	 * structure is selected. 
9e423b
+	 */
9e423b
+	if (kernel_symbol_exists("perf_mmap_to_page"))
9e423b
+		gdb_set_crash_scope(symbol_value("perf_mmap_to_page"), 
9e423b
+			"perf_mmap_to_page");
9e423b
+
9e423b
 	online_cpus = get_cpus_online();
9e423b
 	list_len = sizeof(struct pt_info)*kt->cpus;
9e423b
 	pt_info_list = malloc(list_len);