2.6.4 timer and helper functions

kernel
2005-05-15T10:21:19Z

[-- 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???