From owner-p4-projects@FreeBSD.ORG Thu Jun 12 17:13:14 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id F10F81065675; Thu, 12 Jun 2008 17:13:13 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AB231065677 for ; Thu, 12 Jun 2008 17:13:13 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8DA7D8FC20 for ; Thu, 12 Jun 2008 17:13:13 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m5CHDDQH083176 for ; Thu, 12 Jun 2008 17:13:13 GMT (envelope-from julian@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m5CHDDHt083174 for perforce@freebsd.org; Thu, 12 Jun 2008 17:13:13 GMT (envelope-from julian@freebsd.org) Date: Thu, 12 Jun 2008 17:13:13 GMT Message-Id: <200806121713.m5CHDDHt083174@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to julian@freebsd.org using -f From: Julian Elischer To: Perforce Change Reviews Cc: Subject: PERFORCE change 143375 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 17:13:14 -0000 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)