Re: [rft] testing BSD accounting format on different archs

From: Y.Ishikawa
Date: Thu May 13 2004 - 20:49:30 EST


Hello,

>Date Sat, 24 Apr 2004 13:46:54 +0200 (CEST)
>From Tim Schmielau <>
>Subject [rft] testing BSD accounting format on different archs
>
>I intend to modify the format of the BSD accounting file in a way that
>
> a) allows cross-platform compatibility using patched acct tools and
> b) is fully binary compatible with the current format.
>
>To make sure these goals are met on all platforms, I'd like to see the
>output of the attached program on all linux ports *except* x86
>(I want to keep my Inbox manageable:).

Please see the attachment for details of the result of acct after applying
your patch.

My machine is:
2 SMP of Itanium 2 (1.2GHz)
Memory: 8 Gbytes
Kernel: 2.6.6

BTW. how is your development for "version2" that you posted in this Mar.19.
I have been interested in your V2 format. The account data is very
useful for performance analysis of processes. It would be more convenient
if acct datainclude pid and ppid.
Naturally I understood V2 would have some incompatibility against current
acct structure. However I'm sure the value of acct data would become larger
in V2.
I hope V2 structure would be included in 2.7 successfully.
I also found tgid is useful in multithread environment, especially NPTL, to
identify the thread and process of a work-unit. Could you add a tgid field
in your V2 structure?

Regards,
Y.Ishikawa

===< program message >================================================

ia64 ia64 ia64 GNU/Linux

v0 v1 v2
ac_flag 0 0 0
ac_version 1 1
ac_uid16 2 2 2
ac_gid16 4 4 4
ac_tty 6 6 6
ac_btime 8 8 8
ac_utime 12 12 12
ac_stime 14 14 14
ac_etime 16 16 16
ac_mem 18 18 18
ac_io 20 20 20
ac_rw 22 22 22
ac_minflt 24 24 24
ac_majflt 26 26 26
ac_swaps 28 28 28
ac_ahz 30 36
ac_exitcode 32 32 32
ac_comm 36 36 38
ac_etime_hi 53 55
ac_etime_lo 54 56
ac_uid 56 60
ac_gid 60 64
sizeof(struct acct)
64 64 68

01 00 04 03 06 05 08 07 0c 0b 0a 09 0e 0d 10 0f
12 11 14 13 16 15 18 17 1a 19 1c 1b 1e 1d 00 00
24 23 22 21 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30
31 32 33 34 35 f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 00

01 02 04 03 06 05 08 07 0c 0b 0a 09 0e 0d 10 0f
12 11 14 13 16 15 18 17 1a 19 1c 1b 1e 1d 20 1f
24 23 22 21 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30
31 32 33 34 35 36 38 37 3c 3b 3a 39 40 3f 3e 3d

01 02 04 03 06 05 08 07 0c 0b 0a 09 0e 0d 10 0f
12 11 14 13 16 15 18 17 1a 19 1c 1b 1e 1d 00 00
24 23 22 21 20 1f 25 26 27 28 29 2a 2b 2c 2d 2e
2f 30 31 32 33 34 35 36 38 37 00 00 3c 3b 3a 39

Attachment: acct_test_nQPpjh
Description: Binary data