hotspot/test/compiler/codecache/dtrace/SegmentedCodeCacheDtraceTestScript.d
author dpochepk
Thu, 25 Dec 2014 15:57:38 +0300
changeset 28392 f64a0abbff20
permissions -rw-r--r--
8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature Reviewed-by: sspitsyn, twisti, fzhinkin, iignatyev
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28392
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
     1
#!/usr/sbin/dtrace -s
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
     2
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
     3
/*
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
     4
 Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
     5
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
     6
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
     7
 This code is free software; you can redistribute it and/or modify it
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
     8
 under the terms of the GNU General Public License version 2 only, as
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
     9
 published by the Free Software Foundation.
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    10
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    11
 This code is distributed in the hope that it will be useful, but WITHOUT
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    12
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    13
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    14
 version 2 for more details (a copy is included in the LICENSE file that
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    15
 accompanied this code).
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    16
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    17
 You should have received a copy of the GNU General Public License version
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    18
 2 along with this work; if not, write to the Free Software Foundation,
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    19
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    20
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    21
 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    22
 or visit www.oracle.com if you need additional information or have any
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    23
 questions.
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    24
*/
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    25
 
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    26
hotspot$target:::method-entry
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    27
/ copyinstr(arg3, arg4) == "baz" /
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    28
{
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    29
    printf("ustack:\n");
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    30
    ustack(50, 500);
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    31
    printf("jstack:\n");
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    32
    jstack();
f64a0abbff20 8059625: JEP-JDK-8043304: Test task: DTrace- tests for segmented codecache feature
dpochepk
parents:
diff changeset
    33
}