Skip to content

Commit

Permalink
Merge ^/head r279759 through r279892.
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitryAndric committed Mar 11, 2015
2 parents bcd450e + 168a37c commit d6cbc26
Show file tree
Hide file tree
Showing 179 changed files with 6,348 additions and 2,433 deletions.
4 changes: 2 additions & 2 deletions cddl/contrib/dtracetoolkit/Proc/pidpersec.d
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

dtrace:::BEGIN
{
printf("%-22s %8s %6s\n", "TIME", "LASTPID", "PID/s");
printf("%-22s %6s\n", "TIME", "PID/s");
pids = 0;
}

Expand All @@ -52,6 +52,6 @@ proc:::exec-success

profile:::tick-1sec
{
printf("%-22Y %8d %6d\n", walltimestamp, `mpid, pids);
printf("%-22Y %6d\n", walltimestamp, pids);
pids = 0;
}
17 changes: 10 additions & 7 deletions cddl/contrib/opensolaris/common/ctf/ctf_create.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,10 +583,10 @@ ctf_discard(ctf_file_t *fp)
return (0); /* no update required */

for (dtd = ctf_list_prev(&fp->ctf_dtdefs); dtd != NULL; dtd = ntd) {
if (dtd->dtd_type <= fp->ctf_dtoldid)
ntd = ctf_list_prev(dtd);
if (CTF_TYPE_TO_INDEX(dtd->dtd_type) <= fp->ctf_dtoldid)
continue; /* skip types that have been committed */

ntd = ctf_list_prev(dtd);
ctf_dtd_delete(fp, dtd);
}

Expand Down Expand Up @@ -1313,10 +1313,13 @@ ctf_add_type(ctf_file_t *dst_fp, ctf_file_t *src_fp, ctf_id_t src_type)
* unless dst_type is a forward declaration and src_type is a struct,
* union, or enum (i.e. the definition of the previous forward decl).
*/
if (dst_type != CTF_ERR && dst_kind != kind && (
dst_kind != CTF_K_FORWARD || (kind != CTF_K_ENUM &&
kind != CTF_K_STRUCT && kind != CTF_K_UNION)))
return (ctf_set_errno(dst_fp, ECTF_CONFLICT));
if (dst_type != CTF_ERR && dst_kind != kind) {
if (dst_kind != CTF_K_FORWARD || (kind != CTF_K_ENUM &&
kind != CTF_K_STRUCT && kind != CTF_K_UNION))
return (ctf_set_errno(dst_fp, ECTF_CONFLICT));
else
dst_type = CTF_ERR;
}

/*
* If the non-empty name was not found in the appropriate hash, search
Expand All @@ -1328,7 +1331,7 @@ ctf_add_type(ctf_file_t *dst_fp, ctf_file_t *src_fp, ctf_id_t src_type)
*/
if (dst_type == CTF_ERR && name[0] != '\0') {
for (dtd = ctf_list_prev(&dst_fp->ctf_dtdefs); dtd != NULL &&
dtd->dtd_type > dst_fp->ctf_dtoldid;
CTF_TYPE_TO_INDEX(dtd->dtd_type) > dst_fp->ctf_dtoldid;
dtd = ctf_list_prev(dtd)) {
if (CTF_INFO_KIND(dtd->dtd_data.ctt_info) == kind &&
dtd->dtd_name != NULL &&
Expand Down
2 changes: 0 additions & 2 deletions cddl/contrib/opensolaris/tools/ctf/cvt/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"

/*
* Routines for preparing tdata trees for conversion into CTF data, and
* for placing the resulting data into an output file.
Expand Down
3 changes: 3 additions & 0 deletions lib/libc/net/sctp_sys_calls.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ sctp_opt_info(int sd, sctp_assoc_t id, int opt, void *arg, socklen_t * size)
case SCTP_PR_ASSOC_STATUS:
((struct sctp_prstatus *)arg)->sprstat_assoc_id = id;
break;
case SCTP_MAX_CWND:
((struct sctp_assoc_value *)arg)->assoc_id = id;
break;
default:
break;
}
Expand Down
42 changes: 42 additions & 0 deletions lib/libc/powerpc/gen/_setjmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,54 @@ ENTRY(_setjmp)
mr %r10,%r1
mr %r9,%r2
stmw %r9,20(%r3)

/* FPRs */
stfd %f14,92+0*8(%r3)
stfd %f15,92+1*8(%r3)
stfd %f16,92+2*8(%r3)
stfd %f17,92+3*8(%r3)
stfd %f18,92+4*8(%r3)
stfd %f19,92+5*8(%r3)
stfd %f20,92+6*8(%r3)
stfd %f21,92+7*8(%r3)
stfd %f22,92+8*8(%r3)
stfd %f23,92+9*8(%r3)
stfd %f24,92+10*8(%r3)
stfd %f25,92+11*8(%r3)
stfd %f26,92+12*8(%r3)
stfd %f27,92+13*8(%r3)
stfd %f28,93+13*8(%r3)
stfd %f29,93+14*8(%r3)
stfd %f30,93+15*8(%r3)
stfd %f31,93+16*8(%r3)

li %r3,0
blr
END(_setjmp)

ENTRY(_longjmp)
lmw %r9,20(%r3)

/* FPRs */
lfd %f14,92+0*8(%r3)
lfd %f15,92+1*8(%r3)
lfd %f16,92+2*8(%r3)
lfd %f17,92+3*8(%r3)
lfd %f18,92+4*8(%r3)
lfd %f19,92+5*8(%r3)
lfd %f20,92+6*8(%r3)
lfd %f21,92+7*8(%r3)
lfd %f22,92+8*8(%r3)
lfd %f23,92+9*8(%r3)
lfd %f24,92+10*8(%r3)
lfd %f25,92+11*8(%r3)
lfd %f26,92+12*8(%r3)
lfd %f27,92+13*8(%r3)
lfd %f28,93+13*8(%r3)
lfd %f29,93+14*8(%r3)
lfd %f30,93+15*8(%r3)
lfd %f31,93+16*8(%r3)

mtlr %r11
mtcr %r12
mr %r1,%r10
Expand Down
42 changes: 42 additions & 0 deletions lib/libc/powerpc/gen/setjmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,55 @@ ENTRY(setjmp)
mr %r10,%r1 /* r10 <- stackptr */
mr %r9,%r2 /* r9 <- global ptr */
stmw %r9,20(%r6)

/* FPRs */
stfd %f14,92+0*8(%r6)
stfd %f15,92+1*8(%r6)
stfd %f16,92+2*8(%r6)
stfd %f17,92+3*8(%r6)
stfd %f18,92+4*8(%r6)
stfd %f19,92+5*8(%r6)
stfd %f20,92+6*8(%r6)
stfd %f21,92+7*8(%r6)
stfd %f22,92+8*8(%r6)
stfd %f23,92+9*8(%r6)
stfd %f24,92+10*8(%r6)
stfd %f25,92+11*8(%r6)
stfd %f26,92+12*8(%r6)
stfd %f27,92+13*8(%r6)
stfd %f28,93+13*8(%r6)
stfd %f29,93+14*8(%r6)
stfd %f30,93+15*8(%r6)
stfd %f31,93+16*8(%r6)

li %r3,0 /* return (0) */
blr
END(setjmp)

WEAK_REFERENCE(CNAME(__longjmp), longjmp)
ENTRY(__longjmp)
lmw %r9,20(%r3) /* restore regs */

/* FPRs */
lfd %f14,92+0*8(%r3)
lfd %f15,92+1*8(%r3)
lfd %f16,92+2*8(%r3)
lfd %f17,92+3*8(%r3)
lfd %f18,92+4*8(%r3)
lfd %f19,92+5*8(%r3)
lfd %f20,92+6*8(%r3)
lfd %f21,92+7*8(%r3)
lfd %f22,92+8*8(%r3)
lfd %f23,92+9*8(%r3)
lfd %f24,92+10*8(%r3)
lfd %f25,92+11*8(%r3)
lfd %f26,92+12*8(%r3)
lfd %f27,92+13*8(%r3)
lfd %f28,93+13*8(%r3)
lfd %f29,93+14*8(%r3)
lfd %f30,93+15*8(%r3)
lfd %f31,93+16*8(%r3)

mr %r6,%r4 /* save val param */
mtlr %r11 /* r11 -> link reg */
mtcr %r12 /* r12 -> condition reg */
Expand Down
42 changes: 42 additions & 0 deletions lib/libc/powerpc/gen/sigsetjmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,54 @@ ENTRY(sigsetjmp)
mr %r10,%r1
mr %r9,%r2
stmw %r9,20(%r6)

/* FPRs */
stfd %f14,92+0*8(%r6)
stfd %f15,92+1*8(%r6)
stfd %f16,92+2*8(%r6)
stfd %f17,92+3*8(%r6)
stfd %f18,92+4*8(%r6)
stfd %f19,92+5*8(%r6)
stfd %f20,92+6*8(%r6)
stfd %f21,92+7*8(%r6)
stfd %f22,92+8*8(%r6)
stfd %f23,92+9*8(%r6)
stfd %f24,92+10*8(%r6)
stfd %f25,92+11*8(%r6)
stfd %f26,92+12*8(%r6)
stfd %f27,92+13*8(%r6)
stfd %f28,93+13*8(%r6)
stfd %f29,93+14*8(%r6)
stfd %f30,93+15*8(%r6)
stfd %f31,93+16*8(%r6)

li %r3,0
blr
END(sigsetjmp)

ENTRY(siglongjmp)
lmw %r9,20(%r3)

/* FPRs */
lfd %f14,92+0*8(%r3)
lfd %f15,92+1*8(%r3)
lfd %f16,92+2*8(%r3)
lfd %f17,92+3*8(%r3)
lfd %f18,92+4*8(%r3)
lfd %f19,92+5*8(%r3)
lfd %f20,92+6*8(%r3)
lfd %f21,92+7*8(%r3)
lfd %f22,92+8*8(%r3)
lfd %f23,92+9*8(%r3)
lfd %f24,92+10*8(%r3)
lfd %f25,92+11*8(%r3)
lfd %f26,92+12*8(%r3)
lfd %f27,92+13*8(%r3)
lfd %f28,93+13*8(%r3)
lfd %f29,93+14*8(%r3)
lfd %f30,93+15*8(%r3)
lfd %f31,93+16*8(%r3)

lwz %r7,0(%r3)
mr %r6,%r4
mtlr %r11
Expand Down
36 changes: 36 additions & 0 deletions lib/libc/powerpc64/gen/_setjmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,41 @@ ENTRY(_setjmp)
mr %r10,%r1
mr %r9,%r2
std %r9,40 + 0*8(%r3)
stfd %f14,40 + 23*8(%r3)
std %r10,40 + 1*8(%r3)
stfd %f15,40 + 24*8(%r3)
std %r11,40 + 2*8(%r3)
stfd %f16,40 + 25*8(%r3)
std %r12,40 + 3*8(%r3)
stfd %f17,40 + 26*8(%r3)
std %r13,40 + 4*8(%r3)
stfd %f18,40 + 27*8(%r3)
std %r14,40 + 5*8(%r3)
stfd %f19,40 + 28*8(%r3)
std %r15,40 + 6*8(%r3)
stfd %f20,40 + 29*8(%r3)
std %r16,40 + 7*8(%r3)
stfd %f21,40 + 30*8(%r3)
std %r17,40 + 8*8(%r3)
stfd %f22,40 + 31*8(%r3)
std %r18,40 + 9*8(%r3)
stfd %f23,40 + 32*8(%r3)
std %r19,40 + 10*8(%r3)
stfd %f24,40 + 33*8(%r3)
std %r20,40 + 11*8(%r3)
stfd %f25,40 + 34*8(%r3)
std %r21,40 + 12*8(%r3)
stfd %f26,40 + 35*8(%r3)
std %r22,40 + 13*8(%r3)
stfd %f27,40 + 36*8(%r3)
std %r23,40 + 14*8(%r3)
stfd %f28,40 + 37*8(%r3)
std %r24,40 + 15*8(%r3)
stfd %f29,40 + 38*8(%r3)
std %r25,40 + 16*8(%r3)
stfd %f30,40 + 39*8(%r3)
std %r26,40 + 17*8(%r3)
stfd %f31,40 + 40*8(%r3)
std %r27,40 + 18*8(%r3)
std %r28,40 + 19*8(%r3)
std %r29,40 + 20*8(%r3)
Expand All @@ -84,23 +102,41 @@ END(_setjmp)

ENTRY(_longjmp)
ld %r9,40 + 0*8(%r3)
lfd %f14,40 + 23*8(%r3)
ld %r10,40 + 1*8(%r3)
lfd %f15,40 + 24*8(%r3)
ld %r11,40 + 2*8(%r3)
lfd %f16,40 + 25*8(%r3)
ld %r12,40 + 3*8(%r3)
lfd %f17,40 + 26*8(%r3)
ld %r14,40 + 5*8(%r3)
lfd %f18,40 + 27*8(%r3)
ld %r15,40 + 6*8(%r3)
lfd %f19,40 + 28*8(%r3)
ld %r16,40 + 7*8(%r3)
lfd %f20,40 + 29*8(%r3)
ld %r17,40 + 8*8(%r3)
lfd %f21,40 + 30*8(%r3)
ld %r18,40 + 9*8(%r3)
lfd %f22,40 + 31*8(%r3)
ld %r19,40 + 10*8(%r3)
lfd %f23,40 + 32*8(%r3)
ld %r20,40 + 11*8(%r3)
lfd %f24,40 + 33*8(%r3)
ld %r21,40 + 12*8(%r3)
lfd %f25,40 + 34*8(%r3)
ld %r22,40 + 13*8(%r3)
lfd %f26,40 + 35*8(%r3)
ld %r23,40 + 14*8(%r3)
lfd %f27,40 + 36*8(%r3)
ld %r24,40 + 15*8(%r3)
lfd %f28,40 + 37*8(%r3)
ld %r25,40 + 16*8(%r3)
lfd %f29,40 + 38*8(%r3)
ld %r26,40 + 17*8(%r3)
lfd %f30,40 + 39*8(%r3)
ld %r27,40 + 18*8(%r3)
lfd %f31,40 + 40*8(%r3)
ld %r28,40 + 19*8(%r3)
ld %r29,40 + 20*8(%r3)
ld %r30,40 + 21*8(%r3)
Expand Down
Loading

0 comments on commit d6cbc26

Please sign in to comment.