about summary refs log tree commit diff
path: root/gmon/sys
diff options
context:
space:
mode:
Diffstat (limited to 'gmon/sys')
-rw-r--r--gmon/sys/gmon.h4
-rw-r--r--gmon/sys/gmon_out.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/gmon/sys/gmon.h b/gmon/sys/gmon.h
index 8368ca1ce3..930729e7fc 100644
--- a/gmon/sys/gmon.h
+++ b/gmon/sys/gmon.h
@@ -175,6 +175,10 @@ extern void monstartup __P ((u_long __lowpc, u_long __highpc));
 /* Clean up profiling and write out gmon.out.  */
 extern void _mcleanup __P ((void));
 
+/* Write current profiling data to file.  */
+extern void __write_profiling __P ((void));
+extern void write_profiling __P ((void));
+
 __END_DECLS
 
 #endif /* sys/gmon.h */
diff --git a/gmon/sys/gmon_out.h b/gmon/sys/gmon_out.h
index c84f945ce8..83dd1ec83e 100644
--- a/gmon/sys/gmon_out.h
+++ b/gmon/sys/gmon_out.h
@@ -33,6 +33,9 @@
 #define	GMON_MAGIC	"gmon"	/* magic cookie */
 #define GMON_VERSION	1	/* version number */
 
+/* For profiling shared object we need a new format.  */
+#define GMON_SHOBJ_VERSION	0x1ffff
+
 __BEGIN_DECLS
 
 /*