[CRIU] Re: [PATCH 6/8] show: UNIX sockets queue support
Pavel Emelyanov
xemul at parallels.com
Tue Feb 28 06:41:12 EST 2012
> +int show_sk_queues(int fd)
> +{
> + struct sk_packet_entry pe;
> + int ret;
> +
> + while (1) {
> + ret = read_img_eof(fd, &pe);
> + if (ret <= 0)
> + return ret;
> +
> + pr_info("pkt for %u length %u bytes\n",
> + pe.id_for, pe.length);
> +
> + ret = read_img_buf(fd, buf, pe.length);
> + if (ret < 0)
> + return ret;
> +
> + pr_info("\t`-[%*s]\n", pe.length, buf);
I'd prefer seeing the packet contents in a way similar to how the
pages' data is shown.
> + }
> +}
>
More information about the CRIU
mailing list