2 * This file was generated automatically by ExtUtils::ParseXS version 2.18_02 from the
3 * contents of Context.xs. Do not edit this file, edit Context.xs instead.
5 * ANY CHANGES MADE HERE WILL BE LOST!
14 * Context.xs. XS interfaces for perf script.
16 * Copyright (C) 2009 Tom Zanussi <tzanussi@gmail.com>
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation; either version 2 of the License, or
21 * (at your option) any later version.
23 * This program is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU General Public License for more details.
28 * You should have received a copy of the GNU General Public License
29 * along with this program; if not, write to the Free Software
30 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
37 #include "../../../perf.h"
38 #include "../../../util/trace-event.h"
40 #ifndef PERL_UNUSED_VAR
41 # define PERL_UNUSED_VAR(var) if (0) var = var
46 XS(XS_Perf__Trace__Context_common_pc
); /* prototype to pass -Wmissing-prototypes */
47 XS(XS_Perf__Trace__Context_common_pc
)
55 Perl_croak(aTHX_
"Usage: %s(%s)", "Perf::Trace::Context::common_pc", "context");
56 PERL_UNUSED_VAR(cv
); /* -W */
58 struct scripting_context
* context
= INT2PTR(struct scripting_context
*,SvIV(ST(0)));
62 RETVAL
= common_pc(context
);
63 XSprePUSH
; PUSHi((IV
)RETVAL
);
69 XS(XS_Perf__Trace__Context_common_flags
); /* prototype to pass -Wmissing-prototypes */
70 XS(XS_Perf__Trace__Context_common_flags
)
78 Perl_croak(aTHX_
"Usage: %s(%s)", "Perf::Trace::Context::common_flags", "context");
79 PERL_UNUSED_VAR(cv
); /* -W */
81 struct scripting_context
* context
= INT2PTR(struct scripting_context
*,SvIV(ST(0)));
85 RETVAL
= common_flags(context
);
86 XSprePUSH
; PUSHi((IV
)RETVAL
);
92 XS(XS_Perf__Trace__Context_common_lock_depth
); /* prototype to pass -Wmissing-prototypes */
93 XS(XS_Perf__Trace__Context_common_lock_depth
)
101 Perl_croak(aTHX_
"Usage: %s(%s)", "Perf::Trace::Context::common_lock_depth", "context");
102 PERL_UNUSED_VAR(cv
); /* -W */
104 struct scripting_context
* context
= INT2PTR(struct scripting_context
*,SvIV(ST(0)));
108 RETVAL
= common_lock_depth(context
);
109 XSprePUSH
; PUSHi((IV
)RETVAL
);
117 XS(boot_Perf__Trace__Context
); /* prototype to pass -Wmissing-prototypes */
118 XS(boot_Perf__Trace__Context
)
125 const char* file
= __FILE__
;
127 PERL_UNUSED_VAR(cv
); /* -W */
128 PERL_UNUSED_VAR(items
); /* -W */
129 XS_VERSION_BOOTCHECK
;
131 newXSproto("Perf::Trace::Context::common_pc", XS_Perf__Trace__Context_common_pc
, file
, "$");
132 newXSproto("Perf::Trace::Context::common_flags", XS_Perf__Trace__Context_common_flags
, file
, "$");
133 newXSproto("Perf::Trace::Context::common_lock_depth", XS_Perf__Trace__Context_common_lock_depth
, file
, "$");
135 call_list(PL_scopestack_ix
, PL_unitcheckav
);