Blame SOURCES/ring_buffer_scope.patch

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