[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [UNIKRAFT PATCH] lib/uksched: Add to error message for stack alloc failure.



All good.

Reviewed-by: Razvan Deaconescu <razvan.deaconescu@xxxxxxxxx>

Alexander Jung <a.jung@xxxxxxxxxxx> writes:
> From: Alexander Jung <alexander.jung@xxxxxxxxx>
>
> The reason for failing to allocate the stack is caused by lack of
> memory.  This patch adds this information to this error message in
> order to ease usage of Unikraft as it is a common question which
> requires troubleshooting.
>
> Signed-off-by: Alexander Jung <alexander.jung@xxxxxxxxx>
> ---
>  lib/uksched/sched.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/uksched/sched.c b/lib/uksched/sched.c
> index ef195c3..4b8e149 100644
> --- a/lib/uksched/sched.c
> +++ b/lib/uksched/sched.c
> @@ -143,7 +143,7 @@ static void *create_stack(struct uk_alloc *allocator)
>  
>       if (uk_posix_memalign(allocator, &stack,
>                             STACK_SIZE, STACK_SIZE) != 0) {
> -             uk_pr_err("Failed to allocate thread stack\n");
> +             uk_pr_err("Failed to allocate thread stack: Not enough 
> memory\n");
>               return NULL;
>       }



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.