From: kernel@wired-net.gr
To: linux-kernel@vger.kernel.org
Subject: 2.6.4 timer and helper functions
Date: Sun, 15 May 2005 13:23:22 +0300 (EEST) [thread overview]
Message-ID: <32786.62.38.142.220.1116152602.squirrel@webmail.wired-net.gr> (raw)
In-Reply-To: <20050515100147.GA72234@muc.de>
[-- Attachment #1: Type: text/plain, Size: 1416 bytes --]
Hi all,
i am running a 2.6.4 kernel on my system , and i am playing a little bit
with kernel time issues and helper functions,just to understand how the
things really work.
While doing that on my x86 system and loaded a module from LDD 3rd
edition,jit.c, which uses a dynamic /proc file to return textual
information.
The info that returns is in this format and uses the kernel functions
,do_gettimeofday,current_kernel_time and jiffies_to_timespec.
The output format is:
0x0009073c 0x000000010009073c 1116162967.247441
1116162967.246530656 591.586065248
0x0009073c 0x000000010009073c 1116162967.247463
1116162967.246530656 591.586065248
0x0009073c 0x000000010009073c 1116162967.247476
1116162967.246530656 591.586065248
0x0009073c 0x000000010009073c 1116162967.247489
1116162967.246530656 591.586065248
where the first two values are the jiffies and jiffies_64.The next two are
the do_gettimeofday and current_kernel_time and the last value is the
jiffies_to_timespec.This output text is "recorded" after 16 minutes of
uptime.Shouldnt the last value be the same as uptime.I have attached an
output file from the boot time until the time the function resets the
struct and starts count from the beggining.Is this a bug or i am missing
sth here???
Best regards,
Chris.
[-- Attachment #2: NAS --]
[-- Type: application/octet-stream, Size: 8798 bytes --]
0xfffd544c 0x00000000fffd544c 1116162200.659770
1116162200.659069664 4294139.459575264
0xfffd544c 0x00000000fffd544c 1116162200.659793
1116162200.659069664 4294139.459575264
0xfffd544c 0x00000000fffd544c 1116162200.659807
1116162200.659069664 4294139.459575264
0xfffd544c 0x00000000fffd544c 1116162200.659820
1116162200.659069664 4294139.459575264
0xfffd575b 0x00000000fffd575b 1116162201.442085
1116162201.441950648 4294140.242456248
0xfffd575b 0x00000000fffd575b 1116162201.442109
1116162201.441950648 4294140.242456248
0xfffd575b 0x00000000fffd575b 1116162201.442122
1116162201.441950648 4294140.242456248
0xfffd575b 0x00000000fffd575b 1116162201.442135
1116162201.441950648 4294140.242456248
0xfffd5a71 0x00000000fffd5a71 1116162202.231974
1116162202.231830568 4294141.32336168
0xfffd5a71 0x00000000fffd5a71 1116162202.231996
1116162202.231830568 4294141.32336168
0xfffd5a71 0x00000000fffd5a71 1116162202.232010
1116162202.231830568 4294141.32336168
0xfffd5a71 0x00000000fffd5a71 1116162202.232023
1116162202.231830568 4294141.32336168
0xfffd5d63 0x00000000fffd5d63 1116162202.986007
1116162202.985715960 4294141.786221560
0xfffd5d63 0x00000000fffd5d63 1116162202.986030
1116162202.985715960 4294141.786221560
0xfffd5d63 0x00000000fffd5d63 1116162202.986043
1116162202.985715960 4294141.786221560
0xfffd5d63 0x00000000fffd5d63 1116162202.986056
1116162202.985715960 4294141.786221560
0xfffd71d6 0x00000000fffd71d6 1116162208.220317
1116162208.219920240 4294147.20425840
0xfffd71d6 0x00000000fffd71d6 1116162208.220341
1116162208.219920240 4294147.20425840
0xfffd71d6 0x00000000fffd71d6 1116162208.220354
1116162208.219920240 4294147.20425840
0xfffd71d6 0x00000000fffd71d6 1116162208.220367
1116162208.219920240 4294147.20425840
0xfffd7432 0x00000000fffd7432 1116162208.824141
1116162208.823828432 4294147.624334032
0xfffd7432 0x00000000fffd7432 1116162208.824165
1116162208.823828432 4294147.624334032
0xfffd7432 0x00000000fffd7432 1116162208.824178
1116162208.823828432 4294147.624334032
0xfffd7432 0x00000000fffd7432 1116162208.824191
1116162208.823828432 4294147.624334032
0xfffd76dc 0x00000000fffd76dc 1116162209.506691
1116162209.505724768 4294148.306230368
0xfffd76dc 0x00000000fffd76dc 1116162209.506714
1116162209.505724768 4294148.306230368
0xfffd76dd 0x00000000fffd76dd 1116162209.506750
1116162209.506724616 4294148.307230216
0xfffd76dd 0x00000000fffd76dd 1116162209.506764
1116162209.506724616 4294148.307230216
0xfffd79f0 0x00000000fffd79f0 1116162210.293679
1116162210.293604992 4294149.94110592
0xfffd79f0 0x00000000fffd79f0 1116162210.293702
1116162210.293604992 4294149.94110592
0xfffd79f0 0x00000000fffd79f0 1116162210.293715
1116162210.293604992 4294149.94110592
0xfffd79f0 0x00000000fffd79f0 1116162210.293728
1116162210.293604992 4294149.94110592
0xfffd7c99 0x00000000fffd7c99 1116162210.974616
1116162210.974501480 4294149.775007080
0xfffd7c99 0x00000000fffd7c99 1116162210.974640
1116162210.974501480 4294149.775007080
0xfffd7c99 0x00000000fffd7c99 1116162210.974653
1116162210.974501480 4294149.775007080
0xfffd7c99 0x00000000fffd7c99 1116162210.974666
1116162210.974501480 4294149.775007080
0xfffd7fb0 0x00000000fffd7fb0 1116162211.766070
1116162211.765381248 4294150.565886848
0xfffd7fb0 0x00000000fffd7fb0 1116162211.766094
1116162211.765381248 4294150.565886848
0xfffd7fb0 0x00000000fffd7fb0 1116162211.766107
1116162211.765381248 4294150.565886848
0xfffd7fb0 0x00000000fffd7fb0 1116162211.766120
1116162211.765381248 4294150.565886848
0xfffd829c 0x00000000fffd829c 1116162212.513993
1116162212.513267552 4294151.313773152
0xfffd829c 0x00000000fffd829c 1116162212.514016
1116162212.513267552 4294151.313773152
0xfffd829c 0x00000000fffd829c 1116162212.514029
1116162212.513267552 4294151.313773152
0xfffd829c 0x00000000fffd829c 1116162212.514042
1116162212.513267552 4294151.313773152
0xfffd858d 0x00000000fffd858d 1116162213.266431
1116162213.266153096 4294152.66658696
0xfffd858d 0x00000000fffd858d 1116162213.266453
1116162213.266153096 4294152.66658696
0xfffd858d 0x00000000fffd858d 1116162213.266467
1116162213.266153096 4294152.66658696
0xfffd858d 0x00000000fffd858d 1116162213.266480
1116162213.266153096 4294152.66658696
0xfffdaeb0 0x00000000fffdaeb0 1116162223.796156
1116162223.795552384 4294162.596057984
0xfffdaeb0 0x00000000fffdaeb0 1116162223.796180
1116162223.795552384 4294162.596057984
0xfffdaeb0 0x00000000fffdaeb0 1116162223.796193
1116162223.795552384 4294162.596057984
0xfffdaeb0 0x00000000fffdaeb0 1116162223.796206
1116162223.795552384 4294162.596057984
0xfffdb151 0x00000000fffdb151 1116162224.469209
1116162224.468450088 4294163.268955688
0xfffdb151 0x00000000fffdb151 1116162224.469233
1116162224.468450088 4294163.268955688
0xfffdb151 0x00000000fffdb151 1116162224.469247
1116162224.468450088 4294163.268955688
0xfffdb151 0x00000000fffdb151 1116162224.469260
1116162224.468450088 4294163.268955688
0xfffdb3b2 0x00000000fffdb3b2 1116162225.077922
1116162225.077357520 4294163.877863120
0xfffdb3b2 0x00000000fffdb3b2 1116162225.077946
1116162225.077357520 4294163.877863120
0xfffdb3b2 0x00000000fffdb3b2 1116162225.077959
1116162225.077357520 4294163.877863120
0xfffdb3b2 0x00000000fffdb3b2 1116162225.077972
1116162225.077357520 4294163.877863120
0xfffded9b 0x00000000fffded9b 1116162239.900231
1116162239.900104120 4294178.700609720
0xfffdfbd9 0x00000000fffdfbd9 1116162243.545937
1116162243.545549928 4294182.346055528
0xfffdfea5 0x00000000fffdfea5 1116162244.261748
1116162244.261441096 4294183.61946696
0xfffe014b 0x00000000fffe014b 1116162244.939810
1116162244.939338040 4294183.739843640
0xfffe03cb 0x00000000fffe03cb 1116162245.580168
1116162245.579240760 4294184.379746360
0xfffe0674 0x00000000fffe0674 1116162246.260663
1116162246.260137248 4294185.60642848
0xfffe08f5 0x00000000fffe08f5 1116162246.901559
1116162246.901039816 4294185.701545416
0xfffe0b99 0x00000000fffe0b99 1116162247.577274
1116162247.576937064 4294186.377442664
0xfffe0e63 0x00000000fffe0e63 1116162248.291766
1116162248.290828536 4294187.91334136
0xfffe48ee 0x00000000fffe48ee 1116162263.276450
1116162263.275550512 4294202.76056112
......................................................................
......................................................................
.....................after 5 minutes exactly from the beggining ......
0x0000002d 0x000000010000002d 1116162375.706265
1116162375.705458568 0.44993160
the counter resets from the beggining...shouldnt be like that from the beggining???
next prev parent reply other threads:[~2005-05-15 10:21 UTC|newest]
Thread overview: 142+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-13 5:51 Hyper-Threading Vulnerability Gabor MICSKO
2005-05-13 12:47 ` Barry K. Nathan
2005-05-13 14:10 ` Jeff Garzik
2005-05-13 14:23 ` Daniel Jacobowitz
2005-05-13 14:32 ` Jeff Garzik
2005-05-13 17:13 ` Andy Isaacson
2005-05-13 18:30 ` Vadim Lobanov
2005-05-13 19:02 ` Andy Isaacson
2005-05-15 9:31 ` Adrian Bunk
2005-05-13 17:14 ` Gabor MICSKO
2005-05-13 20:23 ` Barry K. Nathan
2005-05-13 18:03 ` Andi Kleen
2005-05-13 18:34 ` Eric Rannaud
2005-05-13 18:35 ` Alan Cox
2005-05-13 18:49 ` Scott Robert Ladd
2005-05-13 19:08 ` Andi Kleen
2005-05-13 19:36 ` Grant Coady
2005-05-16 17:00 ` Linus Torvalds
2005-05-16 12:37 ` Tommy Reynolds
2005-05-18 19:07 ` Bill Davidsen
2005-05-13 18:38 ` Richard F. Rebel
2005-05-13 19:05 ` Andi Kleen
2005-05-13 21:26 ` Andy Isaacson
2005-05-13 21:59 ` Matt Mackall
2005-05-13 22:47 ` Alan Cox
2005-05-13 23:00 ` Lee Revell
2005-05-13 23:27 ` Dave Jones
2005-05-13 23:38 ` Lee Revell
2005-05-13 23:44 ` Dave Jones
2005-05-14 7:37 ` Lee Revell
2005-05-14 15:33 ` Andrea Arcangeli
2005-05-15 1:07 ` Christer Weinigel
2005-05-15 9:48 ` Andi Kleen
2005-05-14 15:23 ` Alan Cox
2005-05-14 15:45 ` andrea
2005-05-15 13:38 ` Mikulas Patocka
2005-05-16 7:06 ` andrea
2005-05-14 16:30 ` Lee Revell
2005-05-14 16:44 ` Arjan van de Ven
2005-05-14 17:56 ` Lee Revell
2005-05-14 18:01 ` Arjan van de Ven
2005-05-14 19:21 ` Lee Revell
2005-05-14 19:48 ` Arjan van de Ven
2005-05-14 23:40 ` Lee Revell
2005-05-15 7:30 ` Arjan van de Ven
2005-05-15 20:41 ` Alan Cox
2005-05-15 20:48 ` Arjan van de Ven
2005-05-15 21:10 ` Lee Revell
2005-05-15 22:55 ` Dave Jones
2005-05-15 23:10 ` Lee Revell
2005-05-16 7:25 ` Arjan van de Ven
2005-05-15 9:37 ` Andi Kleen
2005-05-15 3:19 ` dean gaudet
2005-05-15 10:01 ` Andi Kleen
2005-05-15 10:23 ` kernel [this message]
2005-05-19 0:38 ` 2.6.4 timer and helper functions George Anzinger
2005-05-15 9:33 ` Hyper-Threading Vulnerability Adrian Bunk
2005-05-14 17:04 ` Jindrich Makovicka
2005-05-14 18:27 ` Lee Revell
2005-05-15 9:58 ` Andi Kleen
2005-05-14 0:39 ` dean gaudet
2005-05-16 13:41 ` Andrea Arcangeli
2005-05-15 9:43 ` Andi Kleen
2005-05-15 18:42 ` David Schwartz
2005-05-15 18:56 ` Dr. David Alan Gilbert
2005-05-16 7:10 ` Eric W. Biederman
2005-05-16 11:04 ` Andi Kleen
2005-05-16 19:14 ` Eric W. Biederman
2005-05-16 20:05 ` Valdis.Kletnieks
2005-05-15 14:00 ` Mikulas Patocka
2005-05-15 14:26 ` Andi Kleen
2005-05-13 23:32 ` Paul Jakma
2005-05-14 16:29 ` Paul Jakma
2005-05-13 19:14 ` Jim Crilly
2005-05-13 20:18 ` Barry K. Nathan
2005-05-13 23:14 ` Jim Crilly
2005-05-13 19:16 ` Diego Calleja
2005-05-13 19:42 ` Frank Denis (Jedi/Sector One)
2005-05-15 9:54 ` Andi Kleen
2005-05-15 13:51 ` Mikulas Patocka
2005-05-15 14:12 ` Andi Kleen
2005-05-15 14:21 ` Mikulas Patocka
2005-05-15 14:52 ` Tomasz Torcz
2005-05-15 15:00 ` Disk write cache (Was: Hyper-Threading Vulnerability) Mikulas Patocka
2005-05-15 15:21 ` Gene Heskett
2005-05-15 15:29 ` Jeff Garzik
2005-05-15 16:27 ` Disk write cache Kenichi Okuyama
2005-05-15 16:43 ` Jeff Garzik
2005-05-15 16:50 ` Kyle Moffett
2005-05-15 16:56 ` Andi Kleen
2005-05-15 20:44 ` Andrew Morton
2005-05-15 23:31 ` Cache based insecurity/CPU cache/Disk Cache Tradeoffs Brian O'Mahoney
2005-05-15 16:58 ` Disk write cache Mikulas Patocka
2005-05-15 17:20 ` Kenichi Okuyama
2005-05-16 11:02 ` Linux does not care for data integrity (was: Disk write cache) Matthias Andree
2005-05-16 11:12 ` Arjan van de Ven
2005-05-16 11:29 ` Matthias Andree
2005-05-16 14:02 ` Arjan van de Ven
2005-05-16 14:48 ` Matthias Andree
2005-05-16 15:06 ` Alan Cox
2005-05-16 15:40 ` Matthias Andree
2005-05-16 18:04 ` Alan Cox
2005-05-16 19:11 ` Linux does not care for data integrity Florian Weimer
2005-05-29 21:02 ` Linux does not care for data integrity (was: Disk write cache) Greg Stark
2005-05-29 21:16 ` Matthias Andree
2005-05-30 6:04 ` Greg Stark
2005-05-30 8:21 ` Matthias Andree
2005-06-01 19:02 ` Linux does not care for data integrity Bill Davidsen
2005-06-01 22:02 ` Matthias Andree
2005-06-02 0:12 ` Bill Davidsen
2005-06-02 0:36 ` Jeff Garzik
2005-06-02 1:37 ` Bill Davidsen
2005-06-02 1:54 ` Jeff Garzik
2005-06-02 8:53 ` Helge Hafting
2005-06-02 12:00 ` Bill Davidsen
2005-06-02 13:33 ` Lennart Sorensen
2005-06-04 13:37 ` Bill Davidsen
2005-06-04 15:31 ` Bernd Eckenfels
2005-05-16 14:57 ` Linux does not care for data integrity (was: Disk write cache) Alan Cox
2005-05-16 13:48 ` Linux does not care for data integrity Mark Lord
2005-05-16 14:59 ` Matthias Andree
2005-05-16 1:56 ` Disk write cache (Was: Hyper-Threading Vulnerability) Gene Heskett
2005-05-16 2:11 ` Jeff Garzik
2005-05-16 2:24 ` Mikulas Patocka
2005-05-16 3:05 ` Gene Heskett
2005-05-16 2:32 ` Mark Lord
2005-05-16 3:08 ` Gene Heskett
2005-05-16 13:44 ` Mark Lord
2005-05-18 4:03 ` Eric D. Mudama
2005-05-15 16:24 ` Mikulas Patocka
2005-05-16 11:18 ` Matthias Andree
2005-05-16 14:33 ` Jeff Garzik
2005-05-16 15:26 ` Richard B. Johnson
2005-05-16 16:00 ` [OT] drive behavior on power-off (was: Disk write cache) Matthias Andree
2005-05-16 18:11 ` Disk write cache (Was: Hyper-Threading Vulnerability) Valdis.Kletnieks
2005-05-16 14:54 ` Alan Cox
2005-05-17 13:15 ` Bill Davidsen
2005-05-17 21:41 ` Kyle Moffett
2005-05-18 4:06 ` Eric D. Mudama
2005-05-15 21:38 ` Tomasz Torcz
2005-05-16 14:50 ` Alan Cox
2005-05-15 15:00 ` Hyper-Threading Vulnerability Arjan van de Ven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=32786.62.38.142.220.1116152602.squirrel@webmail.wired-net.gr \
--to=kernel@wired-net.gr \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).