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.
16 * Copyright (C) 2009 Tom Zanussi <tzanussi@gmail.com>
22 #include "../../../perf.h"
23 #include "../../../util/trace-event.h"
25 #ifndef PERL_UNUSED_VAR
26 # define PERL_UNUSED_VAR(var) if (0) var = var
31 XS(XS_Perf__Trace__Context_common_pc
); /* prototype to pass -Wmissing-prototypes */
32 XS(XS_Perf__Trace__Context_common_pc
)
40 Perl_croak(aTHX_
"Usage: %s(%s)", "Perf::Trace::Context::common_pc", "context");
41 PERL_UNUSED_VAR(cv
); /* -W */
43 struct scripting_context
* context
= INT2PTR(struct scripting_context
*,SvIV(ST(0)));
47 RETVAL
= common_pc(context
);
48 XSprePUSH
; PUSHi((IV
)RETVAL
);
54 XS(XS_Perf__Trace__Context_common_flags
); /* prototype to pass -Wmissing-prototypes */
55 XS(XS_Perf__Trace__Context_common_flags
)
63 Perl_croak(aTHX_
"Usage: %s(%s)", "Perf::Trace::Context::common_flags", "context");
64 PERL_UNUSED_VAR(cv
); /* -W */
66 struct scripting_context
* context
= INT2PTR(struct scripting_context
*,SvIV(ST(0)));
70 RETVAL
= common_flags(context
);
71 XSprePUSH
; PUSHi((IV
)RETVAL
);
77 XS(XS_Perf__Trace__Context_common_lock_depth
); /* prototype to pass -Wmissing-prototypes */
78 XS(XS_Perf__Trace__Context_common_lock_depth
)
86 Perl_croak(aTHX_
"Usage: %s(%s)", "Perf::Trace::Context::common_lock_depth", "context");
87 PERL_UNUSED_VAR(cv
); /* -W */
89 struct scripting_context
* context
= INT2PTR(struct scripting_context
*,SvIV(ST(0)));
93 RETVAL
= common_lock_depth(context
);
94 XSprePUSH
; PUSHi((IV
)RETVAL
);
102 XS(boot_Perf__Trace__Context
); /* prototype to pass -Wmissing-prototypes */
103 XS(boot_Perf__Trace__Context
)
110 const char* file
= __FILE__
;
112 PERL_UNUSED_VAR(cv
); /* -W */
113 PERL_UNUSED_VAR(items
); /* -W */
114 XS_VERSION_BOOTCHECK
;
116 newXSproto("Perf::Trace::Context::common_pc", XS_Perf__Trace__Context_common_pc
, file
, "$");
117 newXSproto("Perf::Trace::Context::common_flags", XS_Perf__Trace__Context_common_flags
, file
, "$");
118 newXSproto("Perf::Trace::Context::common_lock_depth", XS_Perf__Trace__Context_common_lock_depth
, file
, "$");
120 call_list(PL_scopestack_ix
, PL_unitcheckav
);