[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Implement /proc/slabinfo
From: |
Samuel Thibault |
Subject: |
Re: [PATCH] Implement /proc/slabinfo |
Date: |
Sat, 24 May 2014 10:57:41 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Fri 23 May 2014 08:54:25 +0200, a écrit :
> + for (i = 0; i < cache_info_count + 1; i++)
> + {
> + size_t l = strlen (infos[i]);
> + memcpy (p, infos[i], l);
The length could be stored too, to avoid having to run strlen again.
Samuel