Home | History | Annotate | Download | only in tools

Lines Matching defs:Syscall

182 Syscall = collections.namedtuple('Syscall', ['name', 'number'])
194 ['syscall', 'frequency', 'filters'])
195 """The filter list for a particular syscall.
197 This is a mapping from one syscall to a list of filters that are evaluated
514 # syscall-descriptor = syscall-name , [ metadata ]
515 # | syscall-group-name , [ metadata ]
519 self._parser_state.error('missing syscall descriptor')
523 'invalid syscall descriptor', token=syscall_descriptor)
529 # This is a syscall group.
533 'invalid syscall group name', token=syscall_descriptor)
537 'nonexistent syscall group namespace',
543 'nonexistent syscall group', token=syscall_descriptor)
544 return (Syscall(name, self._arch.syscalls[name])
548 'nonexistent syscall', token=syscall_descriptor)
549 return (Syscall(syscall_descriptor.value,
552 # filter-statement = '{' , syscall-descriptor , [ { ',', syscall-descriptor } ] , '}' ,
554 # | syscall-descriptor , ':' , filter
719 # Collapse statements into a single syscall-to-filter-list.
723 for syscall in syscalls:
724 if syscall not in syscall_filter_mapping:
727 syscall, self._frequency_mapping.get(syscall, 1),
729 syscall_filter_mapping[syscall] = filter_statements[-1]
730 syscall_filter_mapping[syscall].filters.extend(filters)
742 ('Syscall %s (number %d) already had '
744 (filter_statement.syscall.name,
745 filter_statement.syscall.number),