Re: [PATCH 1/5] mm, slab: Make kmalloc_info[] contain all types of names

2019-09-09 Thread Pengfei Li
On Tue, Sep 10, 2019 at 2:30 AM Rasmus Villemoes wrote: > > On 09/09/2019 18.53, Pengfei Li wrote: > > On Mon, Sep 9, 2019 at 10:59 PM Vlastimil Babka wrote: > > >>> /* > >>>* kmalloc_info[] is to make slub_debug=,kmalloc-xx option work at boot > >>> time. > >>>* kmalloc_index() suppor

Re: [PATCH 1/5] mm, slab: Make kmalloc_info[] contain all types of names

2019-09-09 Thread Vlastimil Babka
On 9/9/19 8:30 PM, Rasmus Villemoes wrote: > On 09/09/2019 18.53, Pengfei Li wrote: >> On Mon, Sep 9, 2019 at 10:59 PM Vlastimil Babka wrote: > /* * kmalloc_info[] is to make slub_debug=,kmalloc-xx option work at boot time. * kmalloc_index() supports up to 2^26=64MB,

Re: [PATCH 1/5] mm, slab: Make kmalloc_info[] contain all types of names

2019-09-09 Thread Rasmus Villemoes
On 09/09/2019 18.53, Pengfei Li wrote: > On Mon, Sep 9, 2019 at 10:59 PM Vlastimil Babka wrote: >>> /* >>>* kmalloc_info[] is to make slub_debug=,kmalloc-xx option work at boot >>> time. >>>* kmalloc_index() supports up to 2^26=64MB, so the final entry of the >>> table is >>>* kma

Re: [PATCH 1/5] mm, slab: Make kmalloc_info[] contain all types of names

2019-09-09 Thread Pengfei Li
On Mon, Sep 9, 2019 at 10:59 PM Vlastimil Babka wrote: > > On 9/3/19 6:04 PM, Pengfei Li wrote: > > There are three types of kmalloc, KMALLOC_NORMAL, KMALLOC_RECLAIM > > and KMALLOC_DMA. > > > > The name of KMALLOC_NORMAL is contained in kmalloc_info[].name, > > but the names of KMALLOC_RECLAIM an

Re: [PATCH 1/5] mm, slab: Make kmalloc_info[] contain all types of names

2019-09-09 Thread Vlastimil Babka
On 9/3/19 6:04 PM, Pengfei Li wrote: There are three types of kmalloc, KMALLOC_NORMAL, KMALLOC_RECLAIM and KMALLOC_DMA. The name of KMALLOC_NORMAL is contained in kmalloc_info[].name, but the names of KMALLOC_RECLAIM and KMALLOC_DMA are dynamically generated by kmalloc_cache_name(). This patch

[PATCH 1/5] mm, slab: Make kmalloc_info[] contain all types of names

2019-09-03 Thread Pengfei Li
There are three types of kmalloc, KMALLOC_NORMAL, KMALLOC_RECLAIM and KMALLOC_DMA. The name of KMALLOC_NORMAL is contained in kmalloc_info[].name, but the names of KMALLOC_RECLAIM and KMALLOC_DMA are dynamically generated by kmalloc_cache_name(). This patch predefines the names of all types of km