Blame SOURCES/ring_buffer_scope.patch

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