PERFORCE change 143377 for review

Julian Elischer julian at FreeBSD.org
Thu Jun 12 17:22:23 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=143377

Change 143377 by julian at julian_trafmon1 on 2008/06/12 17:21:42

	Enter the concept of a global hostname (i.e. that of vimage0)

Affected files ...

.. //depot/projects/vimage/src/sys/amd64/amd64/dump_machdep.c#5 integrate
.. //depot/projects/vimage/src/sys/amd64/amd64/minidump_machdep.c#5 integrate
.. //depot/projects/vimage/src/sys/arm/arm/dump_machdep.c#4 integrate
.. //depot/projects/vimage/src/sys/i386/i386/dump_machdep.c#7 integrate
.. //depot/projects/vimage/src/sys/i386/i386/minidump_machdep.c#7 integrate
.. //depot/projects/vimage/src/sys/ia64/ia64/dump_machdep.c#4 integrate
.. //depot/projects/vimage/src/sys/mips/mips/dump_machdep.c#3 integrate
.. //depot/projects/vimage/src/sys/sparc64/sparc64/dump_machdep.c#4 integrate
.. //depot/projects/vimage/src/sys/sun4v/sun4v/dump_machdep.c#4 integrate
.. //depot/projects/vimage/src/sys/sys/vimage.h#53 integrate

Differences ...

==== //depot/projects/vimage/src/sys/amd64/amd64/dump_machdep.c#5 (text+ko) ====

@@ -122,7 +122,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, G_hostname, sizeof(kdh->hostname));
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage/src/sys/amd64/amd64/minidump_machdep.c#5 (text) ====

@@ -98,7 +98,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, G_hostname, sizeof(kdh->hostname));
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage/src/sys/arm/arm/dump_machdep.c#4 (text+ko) ====

@@ -120,7 +120,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, G_hostname, sizeof(kdh->hostname));
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage/src/sys/i386/i386/dump_machdep.c#7 (text+ko) ====

@@ -122,7 +122,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, G_hostname, sizeof(kdh->hostname));
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage/src/sys/i386/i386/minidump_machdep.c#7 (text) ====

@@ -96,7 +96,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, G_hostname, sizeof(kdh->hostname));
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage/src/sys/ia64/ia64/dump_machdep.c#4 (text+ko) ====

@@ -77,7 +77,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, G_hostname, sizeof(kdh->hostname));
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage/src/sys/mips/mips/dump_machdep.c#3 (text+ko) ====


==== //depot/projects/vimage/src/sys/sparc64/sparc64/dump_machdep.c#4 (text+ko) ====

@@ -73,7 +73,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, G_hostname, sizeof(kdh->hostname));
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage/src/sys/sun4v/sun4v/dump_machdep.c#4 (text+ko) ====

@@ -74,7 +74,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, G_hostname, sizeof(kdh->hostname));
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage/src/sys/sys/vimage.h#53 (text+ko) ====

@@ -51,6 +51,7 @@
 struct	ifnet;		/* XXX must go away */
 
 #define curvnet curthread->td_vnet
+#define basevnet thread0.td_vnet
 
 typedef int vnet_attach_fn(const void *);
 typedef int vnet_detach_fn(const void *);
@@ -319,10 +320,11 @@
 #define VPROCG(sym)		VSYM(vprocg, sym)
 #define VCPU(sym)		VSYM(vcpu, sym)
 
-#define V_cp_time		VPROCG(cp_time)
 #define V_hostname		VPROCG(hostname)
+#define G_hostname		VSYM(basevnet, hostname) /* global hostname */
 #define V_domainname		VPROCG(domainname)
 #define V_morphing_symlinks	VPROCG(morphing_symlinks)
+#define V_cp_time		VPROCG(cp_time)
 #define V_averunnable		VPROCG(averunnable)
 #define V_sched_tdcnt		VPROCG(sched_tdcnt)
 #define V_tdq_sysload		VPROCG(tdq_sysload)


More information about the p4-projects mailing list