* question on timestamps generated with "hcidump -t"
@ 2012-04-05 19:00 Oliver Neukum
2012-04-05 19:34 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: Oliver Neukum @ 2012-04-05 19:00 UTC (permalink / raw)
To: linux-bluetooth
Hi,
could somebody enlighten me, when exactly those timestamps are generated?
Regards
Oliver
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question on timestamps generated with "hcidump -t"
2012-04-05 19:00 question on timestamps generated with "hcidump -t" Oliver Neukum
@ 2012-04-05 19:34 ` Marcel Holtmann
2012-04-05 20:39 ` Oliver Neukum
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2012-04-05 19:34 UTC (permalink / raw)
To: Oliver Neukum; +Cc: linux-bluetooth
Hi Oliver,
> could somebody enlighten me, when exactly those timestamps are generated?
they are normally stamped when they enter our internal queues. So the
Bluetooth core stamps them when they come from the driver.
/* Receive frame from HCI drivers */
int hci_recv_frame(struct sk_buff *skb)
{
struct hci_dev *hdev = (struct hci_dev *) skb->dev;
if (!hdev || (!test_bit(HCI_UP, &hdev->flags)
&& !test_bit(HCI_INIT, &hdev->flags))) {
kfree_skb(skb);
return -ENXIO;
}
/* Incomming skb */
bt_cb(skb)->incoming = 1;
/* Time stamp */
__net_timestamp(skb);
skb_queue_tail(&hdev->rx_q, skb);
queue_work(hdev->workqueue, &hdev->rx_work);
return 0;
}
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question on timestamps generated with "hcidump -t"
2012-04-05 19:34 ` Marcel Holtmann
@ 2012-04-05 20:39 ` Oliver Neukum
2012-04-05 22:11 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: Oliver Neukum @ 2012-04-05 20:39 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: linux-bluetooth
Am Donnerstag, 5. April 2012, 21:34:39 schrieb Marcel Holtmann:
> Hi Oliver,
>
> > could somebody enlighten me, when exactly those timestamps are generated?
>
> they are normally stamped when they enter our internal queues. So the
> Bluetooth core stamps them when they come from the driver.
Thanks. That means if they come from btusb on ehci they are
stamped in interrupt.
So it is not possible that an event is late because the work queue
was congested.
Regards
Oliver
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question on timestamps generated with "hcidump -t"
2012-04-05 20:39 ` Oliver Neukum
@ 2012-04-05 22:11 ` Marcel Holtmann
0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2012-04-05 22:11 UTC (permalink / raw)
To: Oliver Neukum; +Cc: linux-bluetooth
Hi Oliver,
> > > could somebody enlighten me, when exactly those timestamps are generated?
> >
> > they are normally stamped when they enter our internal queues. So the
> > Bluetooth core stamps them when they come from the driver.
>
> Thanks. That means if they come from btusb on ehci they are
> stamped in interrupt.
> So it is not possible that an event is late because the work queue
> was congested.
not that I can tell. And yes, in case of USB they are stamped in
interrupt.
But with USB keep in mind that HCI events and HCI ACL data is on
different endpoints.
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-05 22:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-05 19:00 question on timestamps generated with "hcidump -t" Oliver Neukum
2012-04-05 19:34 ` Marcel Holtmann
2012-04-05 20:39 ` Oliver Neukum
2012-04-05 22:11 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).