Re: [PATCH] [8/7] oprofile - dcookies need to use u32

From: David S. Miller (davem@redhat.com)
Date: Wed Oct 16 2002 - 16:38:43 EST


   From: John Levon <levon@movementarian.org>
   Date: Wed, 16 Oct 2002 17:40:57 +0100
   
   I'm not sure that's an option :
   
   o userspace needs to know the size of the cookie in the event buffer
   o userspace would like to use the cookie as a hash value to avoid
     repeated lookups
   
   Perhaps the best solution would be to use a separate u32 ID value,
   allocated linearly. I could just refuse to allocate new dcookies in
   theoretical case of overflow.
   
   The other possibility is a dcookiefs (cat
   /dev/oprofile/dcookie/34343234) but that's a lot of extra
   code/complexity ...
   
I don't understand why using a bigger type is not an option.

Why not just use u64? That would work too.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:30 EST