Date: Thu, 12 Jun 2008 17:13:13 GMT From: Julian Elischer <julian@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 143375 for review Message-ID: <200806121713.m5CHDDHt083174@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=143375 Change 143375 by julian@julian_trafmon1 on 2008/06/12 17:13:00 Create a global hostname Affected files ... .. //depot/projects/vimage-commit/src/sys/amd64/amd64/dump_machdep.c#3 edit .. //depot/projects/vimage-commit/src/sys/amd64/amd64/minidump_machdep.c#3 edit .. //depot/projects/vimage-commit/src/sys/arm/arm/dump_machdep.c#3 edit .. //depot/projects/vimage-commit/src/sys/i386/i386/dump_machdep.c#3 edit .. //depot/projects/vimage-commit/src/sys/i386/i386/minidump_machdep.c#3 edit .. //depot/projects/vimage-commit/src/sys/ia64/ia64/dump_machdep.c#3 edit .. //depot/projects/vimage-commit/src/sys/mips/mips/dump_machdep.c#2 edit .. //depot/projects/vimage-commit/src/sys/sparc64/sparc64/dump_machdep.c#3 edit .. //depot/projects/vimage-commit/src/sys/sun4v/sun4v/dump_machdep.c#3 edit .. //depot/projects/vimage-commit/src/sys/sys/vimage.h#3 edit Differences ... ==== //depot/projects/vimage-commit/src/sys/amd64/amd64/dump_machdep.c#3 (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-commit/src/sys/amd64/amd64/minidump_machdep.c#3 (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-commit/src/sys/arm/arm/dump_machdep.c#3 (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-commit/src/sys/i386/i386/dump_machdep.c#3 (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-commit/src/sys/i386/i386/minidump_machdep.c#3 (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-commit/src/sys/ia64/ia64/dump_machdep.c#3 (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-commit/src/sys/mips/mips/dump_machdep.c#2 (text+ko) ==== ==== //depot/projects/vimage-commit/src/sys/sparc64/sparc64/dump_machdep.c#3 (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-commit/src/sys/sun4v/sun4v/dump_machdep.c#3 (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-commit/src/sys/sys/vimage.h#3 (text+ko) ==== @@ -319,13 +319,16 @@ #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 hostname /* global hostname..vimage 0*/ #define V_domainname VPROCG(domainname) +#if 0 #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) +#endif #define V_acc_statcalls VCPU(acc_statcalls) #define V_avg1_fixp VCPU(avg1_fixp)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806121713.m5CHDDHt083174>