0N/A#
2362N/A# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A#
0N/A# This code is free software; you can redistribute it and/or modify it
0N/A# under the terms of the GNU General Public License version 2 only, as
2362N/A# published by the Free Software Foundation. Oracle designates this
0N/A# particular file as subject to the "Classpath" exception as provided
2362N/A# by Oracle in the LICENSE file that accompanied this code.
0N/A#
0N/A# This code is distributed in the hope that it will be useful, but WITHOUT
0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A# version 2 for more details (a copy is included in the LICENSE file that
0N/A# accompanied this code).
0N/A#
0N/A# You should have received a copy of the GNU General Public License version
0N/A# 2 along with this work; if not, write to the Free Software Foundation,
0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A#
2362N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A# or visit www.oracle.com if you need additional information or have any
2362N/A# questions.
0N/A#
0N/A
0N/AInstructions on adding a jvmti demo agent.
0N/A
0N/ABasically you want to mimic the jvmti demo agent "mtrace".
0N/A
2106N/A* Create and populate a source directory at src/share/demo/jvmti
2106N/A (Try and re-use code in agent_util area like src/share/demo/jvmti/mtrace)
0N/A (This should include a small README.txt document on what this demo is)
0N/A
0N/A* Make sure the appropriate "demo" copyright notice is added to all the
0N/A source files.
0N/A
0N/A* Edit src/share/demo/jvmti/index.html and add in reference to this demo.
0N/A
0N/A* Create make directory at make/mkdemo/jvmti
0N/A (Mimic make/mkdemo/jvmti/mtrace/Makefile)
0N/A
0N/A* Edit make/mkdemo/jvmti/Makefile and add in the new demo
0N/A
0N/A* Create test directory at test/demo/jvmti, create at least one test
0N/A (Use test/demo/jvmti/mtrace as a template)
0N/A
2106N/A* Don't forget to check in all the new files
0N/A
0N/A* Build and create images (cd make && gnumake && gnumake images)
0N/A (Do this on Solaris, Linux, and at least one Windows platform)
0N/A
0N/A* Verify that browsing build/*/j2sdk-images/demo/jvmti looks right
0N/A
0N/A* Run the tests: cd test/demo/jvmti && runregress .
0N/A (Do this on Solaris, Linux, and at least one Windows platform)
0N/A
2106N/AContact: serviceability-dev@openjdk.java.net for more information or help.
0N/A