Deleted Added
full compact
TestFunctionLookup.java (178477) TestFunctionLookup.java (210767)
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 (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
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 (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
24 * Use is subject to license terms.
25 *
26 * ident "%Z%%M% %I% %E% SMI"
27 */
28
29import org.opensolaris.os.dtrace.*;
30
31/**
32 * Regression for bug 6413280 lookupKernelFunction() and
33 * lookupUserFunction() truncate last character.
34 */

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

65 address = (Number)tuple.get(0).getValue();
66 if (address instanceof Integer) {
67 int addr = (Integer)address;
68 f = consumer.lookupKernelFunction(addr);
69 } else {
70 long addr = (Long)address;
71 f = consumer.lookupKernelFunction(addr);
72 }
25 */
26
27import org.opensolaris.os.dtrace.*;
28
29/**
30 * Regression for bug 6413280 lookupKernelFunction() and
31 * lookupUserFunction() truncate last character.
32 */

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

63 address = (Number)tuple.get(0).getValue();
64 if (address instanceof Integer) {
65 int addr = (Integer)address;
66 f = consumer.lookupKernelFunction(addr);
67 } else {
68 long addr = (Long)address;
69 f = consumer.lookupKernelFunction(addr);
70 }
73 if (f.equals("genunix`setrun")) {
71 if (f.equals("genunix`cv_wakeup")) {
74 System.out.println(f);
75 done = true;
76 }
77 }
78 }
79 }
80 consumer.close();
81 } catch (Exception e) {

--- 35 unchanged lines hidden ---
72 System.out.println(f);
73 done = true;
74 }
75 }
76 }
77 }
78 consumer.close();
79 } catch (Exception e) {

--- 35 unchanged lines hidden ---