Deleted Added
full compact
dtrace_isa.c (248457) dtrace_isa.c (254509)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 7 unchanged lines hidden (view full) ---

16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 *
22 * Portions Copyright 2012,2013 Justin Hibbits <jhibbits@freebsd.org>
23 *
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 7 unchanged lines hidden (view full) ---

16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 *
22 * Portions Copyright 2012,2013 Justin Hibbits <jhibbits@freebsd.org>
23 *
24 * $FreeBSD: head/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c 248457 2013-03-18 05:30:18Z jhibbits $
24 * $FreeBSD: head/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c 254509 2013-08-19 05:10:46Z jhibbits $
25 */
26/*
27 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
29 */
30#include <sys/cdefs.h>
31
32#include <sys/param.h>

--- 42 unchanged lines hidden (view full) ---

75 aframes++;
76
77 sp = dtrace_getfp();
78
79 while (depth < pcstack_limit) {
80 if (!INKERNEL((long) sp))
81 break;
82
25 */
26/*
27 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
29 */
30#include <sys/cdefs.h>
31
32#include <sys/param.h>

--- 42 unchanged lines hidden (view full) ---

75 aframes++;
76
77 sp = dtrace_getfp();
78
79 while (depth < pcstack_limit) {
80 if (!INKERNEL((long) sp))
81 break;
82
83#ifdef __powerpc64__
84 callpc = *(uintptr_t *)(sp + RETURN_OFFSET64);
85#else
83 callpc = *(uintptr_t *)(sp + RETURN_OFFSET);
86 callpc = *(uintptr_t *)(sp + RETURN_OFFSET);
87#endif
84
85 if (!INKERNEL(callpc))
86 break;
87
88 if (aframes > 0) {
89 aframes--;
90 if ((aframes == 0) && (caller != 0)) {
91 pcstack[depth++] = caller;

--- 492 unchanged lines hidden ---
88
89 if (!INKERNEL(callpc))
90 break;
91
92 if (aframes > 0) {
93 aframes--;
94 if ((aframes == 0) && (caller != 0)) {
95 pcstack[depth++] = caller;

--- 492 unchanged lines hidden ---