1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * This file was generated automatically by ExtUtils::ParseXS version 2.18_02 from the
4 * contents of Context.xs. Do not edit this file, edit Context.xs instead.
6 * ANY CHANGES MADE HERE WILL BE LOST!
14 * Context.xs. XS interfaces for perf script.
22 #include "../../../util/trace-event.h"
24 #ifndef PERL_UNUSED_VAR
25 # define PERL_UNUSED_VAR(var) if (0) var = var
30 XS(XS_Perf__Trace__Context_common_pc); /* prototype to pass -Wmissing-prototypes */
31 XS(XS_Perf__Trace__Context_common_pc)
39 Perl_croak(aTHX_ "Usage: %s(%s)", "Perf::Trace::Context::common_pc", "context");
40 PERL_UNUSED_VAR(cv); /* -W */
42 struct scripting_context * context = INT2PTR(struct scripting_context *,SvIV(ST(0)));
46 RETVAL = common_pc(context);
47 XSprePUSH; PUSHi((IV)RETVAL);
53 XS(XS_Perf__Trace__Context_common_flags); /* prototype to pass -Wmissing-prototypes */
54 XS(XS_Perf__Trace__Context_common_flags)
62 Perl_croak(aTHX_ "Usage: %s(%s)", "Perf::Trace::Context::common_flags", "context");
63 PERL_UNUSED_VAR(cv); /* -W */
65 struct scripting_context * context = INT2PTR(struct scripting_context *,SvIV(ST(0)));
69 RETVAL = common_flags(context);
70 XSprePUSH; PUSHi((IV)RETVAL);
76 XS(XS_Perf__Trace__Context_common_lock_depth); /* prototype to pass -Wmissing-prototypes */
77 XS(XS_Perf__Trace__Context_common_lock_depth)
85 Perl_croak(aTHX_ "Usage: %s(%s)", "Perf::Trace::Context::common_lock_depth", "context");
86 PERL_UNUSED_VAR(cv); /* -W */
88 struct scripting_context * context = INT2PTR(struct scripting_context *,SvIV(ST(0)));
92 RETVAL = common_lock_depth(context);
93 XSprePUSH; PUSHi((IV)RETVAL);
101 XS(boot_Perf__Trace__Context); /* prototype to pass -Wmissing-prototypes */
102 XS(boot_Perf__Trace__Context)
109 const char* file = __FILE__;
111 PERL_UNUSED_VAR(cv); /* -W */
112 PERL_UNUSED_VAR(items); /* -W */
113 XS_VERSION_BOOTCHECK ;
115 newXSproto("Perf::Trace::Context::common_pc", XS_Perf__Trace__Context_common_pc, file, "$");
116 newXSproto("Perf::Trace::Context::common_flags", XS_Perf__Trace__Context_common_flags, file, "$");
117 newXSproto("Perf::Trace::Context::common_lock_depth", XS_Perf__Trace__Context_common_lock_depth, file, "$");
119 call_list(PL_scopestack_ix, PL_unitcheckav);