Browse Source

Plan 9 from Bell Labs 2005-08-06

David du Colombier 16 years ago
parent
commit
26cea543e6
5 changed files with 15 additions and 11 deletions
  1. 4 4
      dist/replica/_plan9.db
  2. 3 3
      dist/replica/plan9.db
  3. 3 0
      dist/replica/plan9.log
  4. 2 2
      sys/src/9/port/devsd.c
  5. 3 2
      sys/src/cmd/kprof.c

+ 4 - 4
dist/replica/_plan9.db

@@ -411,7 +411,7 @@
 386/bin/sum - 775 sys sys 1115950116 39470
 386/bin/swap - 775 sys sys 1115950116 62094
 386/bin/syscall - 775 sys sys 1115950116 73536
-386/bin/tail - 775 sys sys 1123123798 66144
+386/bin/tail - 775 sys sys 1123211424 66178
 386/bin/tar - 775 sys sys 1120014538 96347
 386/bin/tbl - 775 sys sys 1115950117 113176
 386/bin/tcs - 775 sys sys 1115950118 256588
@@ -8058,7 +8058,7 @@ sys/src/9/port/devpipe.c - 664 sys sys 1077055016 5825
 sys/src/9/port/devpnp.c - 664 sys sys 1088560907 13624
 sys/src/9/port/devproc.c - 664 sys sys 1106585362 28465
 sys/src/9/port/devroot.c - 664 sys sys 1067722764 4254
-sys/src/9/port/devsd.c - 664 sys sys 1071245428 28564
+sys/src/9/port/devsd.c - 664 sys sys 1123255503 28564
 sys/src/9/port/devsdp.c - 664 sys sys 1057323393 44800
 sys/src/9/port/devsegment.c - 664 sys sys 1017679394 9600
 sys/src/9/port/devsrv.c - 664 sys sys 1107232208 5418
@@ -12112,7 +12112,7 @@ sys/src/cmd/kl/optab.c - 664 sys sys 1105798985 7369
 sys/src/cmd/kl/pass.c - 664 sys sys 1045503969 9348
 sys/src/cmd/kl/sched.c - 664 sys sys 1089299170 10796
 sys/src/cmd/kl/span.c - 664 sys sys 1045503970 10146
-sys/src/cmd/kprof.c - 664 sys sys 1014926615 2542
+sys/src/cmd/kprof.c - 664 sys sys 1123244004 2550
 sys/src/cmd/ktrace.c - 664 sys sys 1119276523 5785
 sys/src/cmd/lens.c - 664 sys sys 1045505408 4645
 sys/src/cmd/lex - 20000000775 sys sys 944961017 0
@@ -14956,4 +14956,4 @@ usr/glenda/lib/profile - 664 glenda glenda 1105128663 890
 usr/glenda/readme.acme - 664 glenda glenda 1019860628 4753
 usr/glenda/readme.rio - 664 glenda glenda 1019860628 6370
 usr/glenda/tmp - 20000000775 glenda glenda 1018802620 0
-386/bin/tail - 775 sys sys 1123211424 66178
+386/bin/kprof - 775 sys sys 1123297918 102527

+ 3 - 3
dist/replica/plan9.db

@@ -311,7 +311,7 @@
 386/bin/join - 775 sys sys 1115950090 114091
 386/bin/jpg - 775 sys sys 1115950090 174528
 386/bin/kbmap - 775 sys sys 1115950090 143307
-386/bin/kprof - 775 sys sys 1119496650 102457
+386/bin/kprof - 775 sys sys 1123297918 102527
 386/bin/ktrace - 775 sys sys 1119496650 116616
 386/bin/lens - 775 sys sys 1115950091 124095
 386/bin/lex - 775 sys sys 1115950091 98664
@@ -8058,7 +8058,7 @@ sys/src/9/port/devpipe.c - 664 sys sys 1077055016 5825
 sys/src/9/port/devpnp.c - 664 sys sys 1088560907 13624
 sys/src/9/port/devproc.c - 664 sys sys 1106585362 28465
 sys/src/9/port/devroot.c - 664 sys sys 1067722764 4254
-sys/src/9/port/devsd.c - 664 sys sys 1071245428 28564
+sys/src/9/port/devsd.c - 664 sys sys 1123255503 28564
 sys/src/9/port/devsdp.c - 664 sys sys 1057323393 44800
 sys/src/9/port/devsegment.c - 664 sys sys 1017679394 9600
 sys/src/9/port/devsrv.c - 664 sys sys 1107232208 5418
@@ -12112,7 +12112,7 @@ sys/src/cmd/kl/optab.c - 664 sys sys 1105798985 7369
 sys/src/cmd/kl/pass.c - 664 sys sys 1045503969 9348
 sys/src/cmd/kl/sched.c - 664 sys sys 1089299170 10796
 sys/src/cmd/kl/span.c - 664 sys sys 1045503970 10146
-sys/src/cmd/kprof.c - 664 sys sys 1014926615 2542
+sys/src/cmd/kprof.c - 664 sys sys 1123244004 2550
 sys/src/cmd/ktrace.c - 664 sys sys 1119276523 5785
 sys/src/cmd/lens.c - 664 sys sys 1045505408 4645
 sys/src/cmd/lex - 20000000775 sys sys 944961017 0

+ 3 - 0
dist/replica/plan9.log

@@ -20735,3 +20735,6 @@
 1123124529 5 c sys/src/cmd/tail.c - 664 sys sys 1123123922 6034
 1123164137 0 c rc/bin/ap - 775 sys sys 1123163734 733
 1123212747 0 c 386/bin/tail - 775 sys sys 1123211424 66178
+1123245155 0 c sys/src/cmd/kprof.c - 664 sys sys 1123244004 2550
+1123255958 0 c sys/src/9/port/devsd.c - 664 sys sys 1123255503 28564
+1123299166 0 c 386/bin/kprof - 775 sys sys 1123297918 102527

+ 2 - 2
sys/src/9/port/devsd.c

@@ -459,7 +459,7 @@ sdgen(Chan* c, char*, Dirtab*, int, int s, Dir* dp)
 	switch(TYPE(c->qid)){
 	case Qtopdir:
 		if(s == DEVDOTDOT){
-			mkqid(&q, QID(0, s, 0, Qtopdir), 0, QTDIR);
+			mkqid(&q, QID(0, 0, 0, Qtopdir), 0, QTDIR);
 			sprint(up->genbuf, "#%C", sddevtab.dc);
 			devdir(c, q, up->genbuf, 0, eve, 0555, dp);
 			return 1;
@@ -505,7 +505,7 @@ sdgen(Chan* c, char*, Dirtab*, int, int s, Dir* dp)
 
 	case Qunitdir:
 		if(s == DEVDOTDOT){
-			mkqid(&q, QID(0, s, 0, Qtopdir), 0, QTDIR);
+			mkqid(&q, QID(0, 0, 0, Qtopdir), 0, QTDIR);
 			sprint(up->genbuf, "#%C", sddevtab.dc);
 			devdir(c, q, up->genbuf, 0, eve, 0555, dp);
 			return 1;

+ 3 - 2
sys/src/cmd/kprof.c

@@ -43,7 +43,8 @@ main(int argc, char *argv[])
 	long i, j, k, n;
 	char *name;
 	ulong *data;
-	ulong tbase, sum;
+	vlong tbase;
+	ulong sum;
 	long delta;
 	Symbol s;
 	Biobuf outbuf;
@@ -94,7 +95,7 @@ main(int argc, char *argv[])
 	if (!textsym(&s, 0))
 		error(0, "no text symbols");
 	tbase = s.value & ~(mach->pgsize-1);	/* align down to page */
-	print("KTZERO %.8lux\n", tbase);
+	print("KTZERO %.8llux\n", tbase);
 	/*
 	 * Accumulate counts for each function
 	 */