def METHOD_NAME(self, function):
    interrupts = []
    for instruction in self.get_function_instructions(function)['ops']:
        if 'opcode' in instruction and instruction['type'] == 'swi':
            for trap in ['syscall', 'swi', 'int 0x80']:
                if trap in instruction['opcode']:
                    interrupts.append(instruction['offset'])
    return interrupts