Lines Matching defs:sc

35 bool VDsoAsmGenerator::syscall(ofstream& os, const Syscall& sc) {
36 if (!sc.is_vdso()) {
37 bool is_public = !sc.is_internal();
39 if (wrapper->applies(sc)) {
47 << " " << name_prefix_ << sc.name
48 << " " << sc.index
49 << " " << sc.num_kernel_args()
64 bool KernelBranchGenerator::syscall(ofstream& os, const Syscall& sc) {
65 if (sc.is_vdso()) {
68 os << "syscall_dispatch " << sc.num_kernel_args() << " " << sc.name << "\n";
72 bool SyscallNumbersGenerator::syscall(ofstream& os, const Syscall& sc) {
73 if (sc.is_vdso())
77 os << define_prefix_ << sc.name << " " << sc.index << "\n";
86 bool TraceInfoGenerator::syscall(ofstream& os, const Syscall& sc) {
87 if (sc.is_vdso())
91 os << "{" << sc.index << ", " << sc.num_kernel_args() << ", "
92 << '"' << sc.name << "\"},\n";
97 bool CategoryGenerator::syscall(ofstream& os, const Syscall& sc) {
98 for (const auto& attr : sc.attributes) {
100 category_map_[attr].push_back(&sc.name);
110 for (auto sc : category.second)
111 os << " SYSCALL_IN_CATEGORY(" << *sc << ")\n";
118 void write_syscall_signature_line(ofstream& os, const Syscall& sc, string name_prefix,
121 auto syscall_name = name_prefix + sc.name;
124 os << sc.return_type() << " " << syscall_name << "(";
129 sc.for_each_kernel_arg([&](const TypeSpec& arg) {
138 if (sc.num_kernel_args() > 0) {
148 string write_syscall_return_var(ofstream& os, const Syscall& sc) {
149 string return_var = sc.is_void_return() ? "" : "ret";
150 if (!sc.is_void_return()) {
151 os << sc.return_type() << " " << return_var << ";\n";
156 void write_syscall_invocation(ofstream& os, const Syscall& sc,
162 os << name_prefix << sc.name << "(";
165 sc.for_each_kernel_arg([&](const TypeSpec& arg) {
169 if (sc.num_kernel_args() > 0) {