lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <d48dcd3c0610300351g6cb67b0eob3e6bfdf1d1fedc2@mail.gmail.com>
Date:	Mon, 30 Oct 2006 22:51:23 +1100
From:	"Anindha Parthy" <anindha@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: accurate serial timestamp

Hello,

I would like to take a high accuracy timestamp whenever data is
received on the serial port.

I think the best place to do this is in the tty_flip_buffer_push
method of the tty_io.c file.

   2652 void tty_flip_buffer_push(struct tty_struct *tty)
   2653 {
   2654     if (tty->low_latency)
   2655         flush_to_ldisc((void *) tty);
   2656     else
   2657         schedule_delayed_work(&tty->flip.work, 1);
   2658 }

I would buffer the timestamps, and access them using an ioctl.

Is this the best way of doing this?

I am currently using the 2.6.15 kernel.

Regards,

Anindha
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ