Chandra Seetharaman 822cfbff2e [PATCH] Process Events: Fix biarch compatibility issue. use __u64 timestamp
Events sent by Process Events Connector from a 64-bit kernel are not binary
compatible with a 32-bit userspace program because the "timestamp" field
(struct timespec) is not arch independent.  This affects the fields that
follow "timestamp" as they will be be off by 8 bytes.

This is a problem for 32-bit userspace programs running with 64-bit kernels
on ppc64, s390, x86-64..  any "biarch" system.

Matt had submitted a different solution to lkml as an RFC earlier.  We have
since switched to a solution recommended by Evgeniy Polyakov.

This patch fixes the problem by changing the timestamp to be a __u64, which
stores the number of nanoseconds.

Tested on a x86_64 system with both 32 bit application and 64 bit
application and on a i386 system.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Matt Helsley <matthltc@us.ibm.com>
Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Cc: Guillaume Thouvenin <guillaume.thouvenin@bull.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-07-31 13:28:36 -07:00
..
2006-06-29 08:55:41 +01:00
2006-07-01 07:44:10 -04:00
2006-06-27 17:32:38 -07:00
2006-07-03 15:27:06 -07:00
2006-06-26 09:58:36 -07:00
2006-07-03 19:44:51 -07:00
2006-07-01 09:56:03 -07:00
2006-06-23 02:07:36 -07:00
2006-06-25 10:01:19 -07:00
2006-07-28 21:02:00 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-06-26 01:51:23 -04:00
2006-06-20 20:24:58 -07:00
2006-07-02 17:29:21 -07:00
2006-06-21 12:40:49 -07:00
2006-06-23 07:43:08 -07:00
2006-07-03 15:27:00 -07:00
2006-06-27 01:24:15 -04:00
2006-07-14 21:53:56 -07:00
2006-07-03 15:27:01 -07:00
2006-07-14 21:53:55 -07:00
2006-06-25 10:01:13 -07:00
2006-06-29 16:58:06 -07:00
2006-06-28 16:52:45 -04:00
2006-06-25 10:01:09 -07:00
2006-07-05 23:02:48 -04:00
2006-07-12 16:05:48 -07:00
2006-06-28 15:54:27 -07:00
2006-07-03 19:48:25 -07:00
2006-06-23 07:42:49 -07:00
2006-06-25 10:01:06 -07:00
2006-06-25 10:01:06 -07:00
2006-06-25 10:01:14 -07:00
2006-06-30 11:25:38 -07:00
2006-06-17 21:29:55 -07:00
2006-06-30 11:25:37 -07:00
2006-06-23 07:43:06 -07:00
2006-06-30 18:25:18 +02:00
2006-07-12 16:03:20 -07:00
2006-07-03 23:30:54 +02:00
2006-07-10 13:24:25 -07:00