def METHOD_NAME(func):
    """Returns addresses of kmalloc calls in a list."""
    addr = []
    called = func.getCalledFunctions(monitor)  # noqa
    for call in called.iterator():
        if call.getName() == '__kmalloc':
            for ref in getReferencesTo(call.getEntryPoint()):  # noqa
                if func.getBody().contains(ref.getFromAddress()):
                    print('found __kmalloc call @ {}'.format(ref.getFromAddress()))
                    addr.append(ref.getFromAddress())
    return addr