PERFORCE change 127863 for review
John Birrell
jb at FreeBSD.org
Sat Oct 20 16:51:29 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=127863
Change 127863 by jb at jb_freebsd1 on 2007/10/20 23:50:55
Expand linker file structure.
Define version 2 of kld_file_stat.
Affected files ...
.. //depot/projects/dtrace6/src/sys/sys/linker.h#2 edit
Differences ...
==== //depot/projects/dtrace6/src/sys/sys/linker.h#2 (text+ko) ====
@@ -73,6 +73,7 @@
#define LINKER_FILE_LINKED 0x1 /* file has been fully linked */
TAILQ_ENTRY(linker_file) link; /* list of all loaded files */
char* filename; /* file which was loaded */
+ char* pathname; /* file name with full path */
int id; /* unique id */
caddr_t address; /* load address */
size_t size; /* size of file */
@@ -81,6 +82,18 @@
STAILQ_HEAD(, common_symbol) common; /* list of common symbols */
TAILQ_HEAD(, module) modules; /* modules in this file */
TAILQ_ENTRY(linker_file) loaded; /* preload dependency support */
+ int loadcnt; /* load counter value */
+
+ /*
+ * Function Boundary Tracing (FBT) or Statically Defined Tracing (SDT)
+ * fields.
+ */
+ int nenabled; /* number of enabled probes. */
+ int fbt_nentries; /* number of fbt entries created. */
+ void *sdt_probes;
+ int sdt_nentries;
+ size_t sdt_nprobes;
+ size_t sdt_size;
};
/*
@@ -267,6 +280,20 @@
#endif /* _KERNEL */
+/*
+ * This is version 1 of the KLD file status structure. It is identified
+ * by it's _size_ in the version field.
+ */
+struct kld_file_stat_1 {
+ int version; /* set to sizeof(linker_file_stat) */
+ char name[MAXPATHLEN];
+ int refs;
+ int id;
+ caddr_t address; /* load address */
+ size_t size; /* size in bytes */
+};
+#endif /* _KERNEL */
+
struct kld_file_stat {
int version; /* set to sizeof(linker_file_stat) */
char name[MAXPATHLEN];
@@ -274,6 +301,7 @@
int id;
caddr_t address; /* load address */
size_t size; /* size in bytes */
+ char pathname[MAXPATHLEN];
};
struct kld_sym_lookup {
More information about the p4-projects
mailing list