Re: [rfc 0/2] Introducing VmFlags field into smaps output

From: Peter Zijlstra
Date: Tue Oct 23 2012 - 18:33:03 EST


On Wed, 2012-10-24 at 01:59 +0400, Cyrill Gorcunov wrote:
> [ilog2(VM_WRITE)] = { {'w', 'r'} },

since we're being awfully positive about crazy late night ideas, how
about something like:

#define MNEM(_VM, _mn) [ilog2(_VM)] = {(const char [2]){_mn}}

MNEM(VM_WRITE, "wr"),


--
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/