Lines Matching defs:tos
354 struct tostruct *tos;
423 if ((tos = (struct tostruct *)malloc(kvp->gpm.tossize)) == NULL)
424 errx(10, "cannot allocate tos space");
426 i = kvm_read(kvp->kd, (u_long)kvp->gpm.tos, (void *)tos,
431 if (sysctl(mib, 3, tos, &i, NULL, 0) < 0)
435 errx(11, "read tos: read %lu, got %ld: %s",
448 toindex = tos[toindex].link) {
451 "count %ld", frompc, tos[toindex].selfpc,
452 tos[toindex].count);
454 rawarc.raw_selfpc = (u_long)tos[toindex].selfpc;
455 rawarc.raw_count = tos[toindex].count;
517 if (kvm_write(kvp->kd, (u_long)kvp->gpm.tos, zbuf,
519 errx(15, "tos zero: %s", kvm_geterr(kvp->kd));
533 err(15, "tos zero");