Re: [PATCH] perf lock: Implement basic sorting function of perflock

From: Peter Zijlstra
Date: Mon Dec 28 2009 - 05:17:51 EST


On Sun, 2009-12-20 at 11:56 +0900, Hitoshi Mitake wrote:
> +/* based on kernel/lockdep.c */
> +#define MAX_LOCKDEP_KEYS_BITS 13
> +#define LOCKHASH_BITS (MAX_LOCKDEP_KEYS_BITS - 1)
> +#define LOCKHASH_SIZE (1UL << LOCKHASH_BITS)

Since you're hashing something fundamentally different than lockdep does
I don't think it makes sense to carry either the name or the size along.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/