xref: /OK3568_Linux_fs/kernel/tools/perf/scripts/perl/Perf-Trace-Util/Context.xs (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Context.xs.  XS interfaces for perf script.
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * Copyright (C) 2009 Tom Zanussi <tzanussi@gmail.com>
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  *  This program is free software; you can redistribute it and/or modify
7*4882a593Smuzhiyun  *  it under the terms of the GNU General Public License as published by
8*4882a593Smuzhiyun  *  the Free Software Foundation; either version 2 of the License, or
9*4882a593Smuzhiyun  *  (at your option) any later version.
10*4882a593Smuzhiyun  *
11*4882a593Smuzhiyun  *  This program is distributed in the hope that it will be useful,
12*4882a593Smuzhiyun  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13*4882a593Smuzhiyun  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*4882a593Smuzhiyun  *  GNU General Public License for more details.
15*4882a593Smuzhiyun  *
16*4882a593Smuzhiyun  *  You should have received a copy of the GNU General Public License
17*4882a593Smuzhiyun  *  along with this program; if not, write to the Free Software
18*4882a593Smuzhiyun  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19*4882a593Smuzhiyun  *
20*4882a593Smuzhiyun  */
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun #include "EXTERN.h"
23*4882a593Smuzhiyun #include "perl.h"
24*4882a593Smuzhiyun #include "XSUB.h"
25*4882a593Smuzhiyun #include "../../../perf.h"
26*4882a593Smuzhiyun #include "../../../util/trace-event.h"
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun MODULE = Perf::Trace::Context		PACKAGE = Perf::Trace::Context
29*4882a593Smuzhiyun PROTOTYPES: ENABLE
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun int
32*4882a593Smuzhiyun common_pc(context)
33*4882a593Smuzhiyun 	struct scripting_context * context
34*4882a593Smuzhiyun 
35*4882a593Smuzhiyun int
36*4882a593Smuzhiyun common_flags(context)
37*4882a593Smuzhiyun 	struct scripting_context * context
38*4882a593Smuzhiyun 
39*4882a593Smuzhiyun int
40*4882a593Smuzhiyun common_lock_depth(context)
41*4882a593Smuzhiyun 	struct scripting_context * context
42*4882a593Smuzhiyun 
43