RE: [PATCH] DVB : add option to dump PDU exchanged with CAM in dvb_core

2011-03-03 Thread COEXSI

> -Original Message-
> From: linux-media-ow...@vger.kernel.org [mailto:linux-media-
> ow...@vger.kernel.org] On Behalf Of Sébastien RAILLARD (COEXSI)
> Sent: lundi 28 février 2011 18:53
> To: Linux Media Mailing List
> Subject: [PATCH] DVB : add option to dump PDU exchanged with CAM in
> dvb_core
> 
> Dear all,
> 
> Here is a patch for the dvb_core module, you'll find it attached to this
> message.
> 
> It's adding a new module integer parameter called "cam_dump_pdu" that
> can have the following values:
> - 0 (by default): don't dump PDU (do nothing)
> - 1: Dump all PDU written and read on device through the syscall
> functions.
> The PDU are dumped in segments of 16 bytes maximum written in
> hexadecimal.
> - 2: like value 1 but remove the commonly used PDU for polling
> (generating a lot of "noise" in the logs)
> 
> The goal of dumping PDU exchanged with CAM is to help debugging userland
> applications and libraries.

I have to add that the PDU dumped are the "TPDU" (Transport Protocol Data
Units), the 2nd level of the stack.
The first level of PDU, the "LPDU" (Link Protocol Data Unit) fragments, are
reassembled by the dvb_core module and are not exposed to the applications.

Anyone interested by this option?

> 
> This is my first patch submission, so I may have made some errors
> regarding the submission rules.
> 
> Best regards,
> Sebastien.

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] DVB : add option to dump PDU exchanged with CAM in dvb_core

2011-02-28 Thread COEXSI
Dear all,

Here is a patch for the dvb_core module, you'll find it attached to this
message.

It's adding a new module integer parameter called "cam_dump_pdu" that can
have the following values:
- 0 (by default): don't dump PDU (do nothing)
- 1: Dump all PDU written and read on device through the syscall functions.
The PDU are dumped in segments of 16 bytes maximum written in hexadecimal.
- 2: like value 1 but remove the commonly used PDU for polling (generating a
lot of "noise" in the logs)

The goal of dumping PDU exchanged with CAM is to help debugging userland
applications and libraries.

This is my first patch submission, so I may have made some errors regarding
the submission rules.

Best regards,
Sebastien.


dvb_ca_en50221.patch
Description: Binary data