Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / javascript-trace.d
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4  *
5  * The contents of this file are subject to the Mozilla Public License Version
6  * 1.1 (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  * http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12  * for the specific language governing rights and limitations under the
13  * License.
14  *
15  * Copyright (C) 2007  Sun Microsystems, Inc. All Rights Reserved.
16  *
17  * Alternatively, the contents of this file may be used under the terms of
18  * either the GNU General Public License Version 2 or later (the "GPL"), or
19  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
20  * in which case the provisions of the GPL or the LGPL are applicable instead
21  * of those above. If you wish to allow use of your version of this file only
22  * under the terms of either the GPL or the LGPL, and not to allow others to
23  * use your version of this file under the terms of the MPL, indicate your
24  * decision by deleting the provisions above and replace them with the notice
25  * and other provisions required by the GPL or the LGPL. If you do not delete
26  * the provisions above, a recipient may use your version of this file under
27  * the terms of any one of the MPL, the GPL or the LGPL.
28  *
29  * ***** END LICENSE BLOCK ***** */
30
31 /*
32  * javascript provider probes
33  *
34  * function-entry       (filename, classname, funcname)
35  * function-return      (filename, classname, funcname)
36  * object-create        (classname, *object)
37  * object-finalize      (NULL, classname, *object)
38  * execute-start        (filename, lineno)
39  * execute-done         (filename, lineno)
40  */
41
42 provider javascript {
43  probe function__entry(const char *, const char *, const char *);
44  probe function__return(const char *, const char *, const char *);
45  /* XXX must use unsigned longs here instead of uintptr_t for OS X 
46     (Apple radar: 5194316 & 5565198) */
47  probe object__create(const char *, unsigned long);
48  probe object__finalize(const char *, const char *, unsigned long);
49  probe execute__start(const char *, int);
50  probe execute__done(const char *, int);
51 };
52
53 /*
54 #pragma D attributes Unstable/Unstable/Common provider mozilla provider
55 #pragma D attributes Private/Private/Unknown provider mozilla module
56 #pragma D attributes Private/Private/Unknown provider mozilla function
57 #pragma D attributes Unstable/Unstable/Common provider mozilla name
58 */
59