2005-02-16 15:57:32

by Filipa Duarte

[permalink] [raw]
Subject: [Bluez-devel] L2CAP & HCI trace

Hi,

I suppose that this is a quite stupid question but I
would like to know how can I have the same kind of
trace as Victor had (in the end of the e-mail)?

The reason why is that I would like to identify which
are the functions (like l2cap_sock_sendmsg,
l2cap_chan_send, hci_send_acl, etc) used to send data
on the l2cap/hci layers. Could anyone give me any
direction to find this?

Many thanks,

Filipa

> 10:29:54.4645405 l2cap_sock_sendmsg: sock c7177340,
sk c72a24a0
> 10:29:54.4646345 l2cap_chan_send: sk c72a24a0 len
506
> 10:29:54.4646865 hci_send_acl: hci0 conn c738c660
flags 0x0
> 10:29:54.4646985 hci_send_acl: hci0 frag c74d92c0
len 196
> 10:29:54.4647105 hci_send_acl: hci0 frag c71b6220
len 196
> 10:29:54.4647225 hci_send_acl: hci0 frag c74d9440
len 130
> 10:29:54.4647345 hci_tx_task: hci0 acl 4 sco 9
> 10:29:54.4647455 hci_sched_acl: hci0
> 10:29:54.4647545 hci_low_sent: conn c738c660 quote
4
> 10:29:54.4647655 hci_sched_acl: skb c74d92c0 len
196
> 10:29:54.4647765 hci_send_frame: hci0 type 2 len
196
> 10:29:54.4647875 hci_uart_send_frame: hci0: type 2
len 196
> 10:29:54.4647995 h4_enqueue: hu c7ced400 skb
c74d92c0
> 10:29:54.4648115 hci_uart_tx_wakeup:
> 10:29:54.4648205 hci_sched_acl: skb c71b6220 len
196
> 10:29:54.4648325 hci_send_frame: hci0 type 2 len
196
> 10:29:54.4648435 hci_uart_send_frame: hci0: type 2
len 196
> 10:29:54.4648555 h4_enqueue: hu c7ced400 skb
c71b6220
> 10:29:54.4648665 hci_uart_tx_wakeup:
> 10:29:54.4648755 hci_sched_acl: skb c74d9440 len
130
> 10:29:54.4648865 hci_send_frame: hci0 type 2 len
130
> 10:29:54.4649085 hci_uart_send_frame: hci0: type 2
len 130
> 10:29:54.4649205 h4_enqueue: hu c7ced400 skb
c74d9440
> 10:29:54.4649325 hci_uart_tx_wakeup:
> 10:29:54.4649615 hci_low_sent: conn 00000000 quote
0
> 10:29:54.4649725 hci_sched_sco: hci0
> 10:29:54.4649815 hci_low_sent: conn 00000000 quote
0
> 10:29:54.4649925 hci_uart_tty_wakeup:
> 10:29:54.4650015 hci_uart_tx_wakeup:
> 10:29:54.4731195 h4_recv: hu c7ced400 count 4
rx_state 0 rx_count 0
> 10:29:54.4731785 h4_recv: Event packet
> 10:29:54.4731885 h4_recv: Event header: evt 0x10
plen 1
> 10:29:54.4732025 h4_check_data_len: len 1 room 1046
> 10:29:54.4732135 h4_recv: Complete data
> 10:29:54.4732235 hci_recv_frame: hci0 type 4 len 3
> 10:29:54.4732335 hci_rx_task: hci0
> 10:29:54.4732445 hci_event_packet: hci0 evt 0x10
> 10:29:54.5151125 h4_recv: hu c7ced400 count 8
rx_state 0 rx_count 0
> 10:29:54.5151715 h4_recv: Event packet
> 10:29:54.5151815 h4_recv: Event header: evt 0x13
plen 5
> 10:29:54.5151965 h4_check_data_len: len 5 room 1046
> 10:29:54.5152075 h4_recv: Complete data
> 10:29:54.5152165 hci_recv_frame: hci0 type 4 len 7
> 10:29:54.5152275 hci_rx_task: hci0
> 10:29:54.5152385 hci_event_packet: hci0 evt 0x13
> 10:29:54.5152525 hci_num_comp_pkts_evt: hci0
num_hndl 1
> 10:29:54.5184605 hci_tx_task: hci0 acl 3 sco 9
> 10:29:54.5185165 hci_sched_acl: hci0
> 10:29:54.5185285 hci_low_sent: conn 00000000 quote
0
> 10:29:54.5185405 hci_sched_sco: hci0
> 10:29:54.5185525 hci_low_sent: conn 00000000 quote 0

=====
--
Filipa Duarte

Computer Engineering Laboratory
Electrical Engineering Department
Delft University of Technology

Melkeweg 4
2628 CD Delft
The Netherlands

phone: +31 (0)15 278 5021
fax: +31 (0)15 278 4898



__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2005-02-21 23:15:46

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] L2CAP & HCI trace

Hi Filipa,

> > Try recompilating your kernel with the
> > CONFIG_BT_HCI_SOCK_DEBUG, CONFIG_BT_L2CAP_DEBUG,
> > etc... (All the options
> > mentionned at the beginning of the files, in a block
> > like :
> >
> > #ifndef CONFIG_BT_L2CAP_DEBUG
> > #undef BT_DBG
> > #define BT_DBG(D...)
> > #endif
> >
> > ) enabled.
> I am a newbie in Linux/BlueZ matters and I am not sure
> how to do this. Could you please explain?

add a line with "#define CONFIG_BT_L2CAP_DEBUG" before this block and
recompile the module.

> By the way, does anybody has the l2cap and hci layers
> implemented im User Space? I need to have those layers
> running without OS...

Actually it is possible to do this, but you are on the wrong mailing
list for this question ;)

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2005-02-17 11:14:14

by Filipa Duarte

[permalink] [raw]
Subject: Re: [Bluez-devel] L2CAP & HCI trace

Hi

Many thanks for your help.

--- zze-COLBUS Emmanuel RD-MAPS-GRE
<[email protected]> wrote:

> Le mercredi 16 f?vrier 2005 ? 07:57 -0800, Filipa
> Duarte a ?crit :
> > Hi,
> >
> > I suppose that this is a quite stupid question but
> I
> > would like to know how can I have the same kind of
> > trace as Victor had (in the end of the e-mail)?
> >
> > The reason why is that I would like to identify
> which
> > are the functions (like l2cap_sock_sendmsg,
> > l2cap_chan_send, hci_send_acl, etc) used to send
> data
> > on the l2cap/hci layers. Could anyone give me any
> > direction to find this?
> >
> > Many thanks,
> >
> > Filipa
> >
>
> Hello,
>
> Try recompilating your kernel with the
> CONFIG_BT_HCI_SOCK_DEBUG, CONFIG_BT_L2CAP_DEBUG,
> etc... (All the options
> mentionned at the beginning of the files, in a block
> like :
>
> #ifndef CONFIG_BT_L2CAP_DEBUG
> #undef BT_DBG
> #define BT_DBG(D...)
> #endif
>
> ) enabled.
I am a newbie in Linux/BlueZ matters and I am not sure
how to do this. Could you please explain?

>
> I've not tried it myself, but, reading to the code,
> I think it will
> work.
>
> Emmanuel Colbus

By the way, does anybody has the l2cap and hci layers
implemented im User Space? I need to have those layers
running without OS...

Cheers,

Filipa



__________________________________
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

Subject: Re: [Bluez-devel] L2CAP & HCI trace

Le mercredi 16 f?vrier 2005 ? 07:57 -0800, Filipa Duarte a ?crit :
> Hi,
>
> I suppose that this is a quite stupid question but I
> would like to know how can I have the same kind of
> trace as Victor had (in the end of the e-mail)?
>
> The reason why is that I would like to identify which
> are the functions (like l2cap_sock_sendmsg,
> l2cap_chan_send, hci_send_acl, etc) used to send data
> on the l2cap/hci layers. Could anyone give me any
> direction to find this?
>
> Many thanks,
>
> Filipa
>

Hello,

Try recompilating your kernel with the
CONFIG_BT_HCI_SOCK_DEBUG, CONFIG_BT_L2CAP_DEBUG, etc... (All the options
mentionned at the beginning of the files, in a block like :

#ifndef CONFIG_BT_L2CAP_DEBUG
#undef BT_DBG
#define BT_DBG(D...)
#endif

) enabled.

I've not tried it myself, but, reading to the code, I think it will
work.

Emmanuel Colbus

--
Please don't care about this useless mail signature:

M. Emmanuel Colbus de l'ENSIMAG intervenant ? FTRD/MAPS/AMS du 01/02/05
au 30/06/05 sous la responsabilit? de M. Tahar Jarboui dans le cadre
d'un stage de fin d'?tudes.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel