0001 /*
0002 * Context.xs. XS interfaces for perf script.
0003 *
0004 * Copyright (C) 2009 Tom Zanussi <tzanussi@gmail.com>
0005 *
0006 * This program is free software; you can redistribute it and/or modify
0007 * it under the terms of the GNU General Public License as published by
0008 * the Free Software Foundation; either version 2 of the License, or
0009 * (at your option) any later version.
0010 *
0011 * This program is distributed in the hope that it will be useful,
0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0014 * GNU General Public License for more details.
0015 *
0016 * You should have received a copy of the GNU General Public License
0017 * along with this program; if not, write to the Free Software
0018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
0019 *
0020 */
0021
0022 #include "EXTERN.h"
0023 #include "perl.h"
0024 #include "XSUB.h"
0025 #include "../../../perf.h"
0026 #include "../../../util/trace-event.h"
0027
0028 MODULE = Perf::Trace::Context PACKAGE = Perf::Trace::Context
0029 PROTOTYPES: ENABLE
0030
0031 int
0032 common_pc(context)
0033 struct scripting_context * context
0034
0035 int
0036 common_flags(context)
0037 struct scripting_context * context
0038
0039 int
0040 common_lock_depth(context)
0041 struct scripting_context * context
0042