[CRIU] Re: [PATCH 6/8] show: UNIX sockets queue support

Pavel Emelyanov xemul at parallels.com
Tue Feb 28 07:09:11 EST 2012


On 02/28/2012 03:43 PM, Kinsbursky Stanislav wrote:
> 28.02.2012 15:41, Pavel Emelyanov пишет:
>>> +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.
> 
> This is your code, Pavel.

No, this is yours ;)

> Please, provide the one you wantm and then I'll replace.

Stas, I asked you to complete the feature. Please, do it.



More information about the CRIU mailing list