Re: [PATCH] mm: vmscan: show zone type in kswapd tracepoints

2019-03-12 Thread Yafang Shao
On Tue, Mar 12, 2019 at 9:38 PM Michal Hocko wrote: > > On Tue 12-03-19 19:04:43, Yafang Shao wrote: > > On Mon, Mar 11, 2019 at 4:47 PM Michal Hocko wrote: > > > > > > On Fri 01-03-19 15:38:54, Yafang Shao wrote: > > > > If we want to know the zone type, we have to check whether > > > >

Re: [PATCH] mm: vmscan: show zone type in kswapd tracepoints

2019-03-12 Thread Michal Hocko
On Tue 12-03-19 19:04:43, Yafang Shao wrote: > On Mon, Mar 11, 2019 at 4:47 PM Michal Hocko wrote: > > > > On Fri 01-03-19 15:38:54, Yafang Shao wrote: > > > If we want to know the zone type, we have to check whether > > > CONFIG_ZONE_DMA, CONFIG_ZONE_DMA32 and CONFIG_HIGHMEM are set or not, > >

Re: [PATCH] mm: vmscan: show zone type in kswapd tracepoints

2019-03-12 Thread Yafang Shao
On Mon, Mar 11, 2019 at 4:47 PM Michal Hocko wrote: > > On Fri 01-03-19 15:38:54, Yafang Shao wrote: > > If we want to know the zone type, we have to check whether > > CONFIG_ZONE_DMA, CONFIG_ZONE_DMA32 and CONFIG_HIGHMEM are set or not, > > that's not so convenient. > > > > We'd better show the

Re: [PATCH] mm: vmscan: show zone type in kswapd tracepoints

2019-03-11 Thread Michal Hocko
On Fri 01-03-19 15:38:54, Yafang Shao wrote: > If we want to know the zone type, we have to check whether > CONFIG_ZONE_DMA, CONFIG_ZONE_DMA32 and CONFIG_HIGHMEM are set or not, > that's not so convenient. > > We'd better show the zone type directly. I do agree that zone number is quite PITA to

[PATCH] mm: vmscan: show zone type in kswapd tracepoints

2019-02-28 Thread Yafang Shao
If we want to know the zone type, we have to check whether CONFIG_ZONE_DMA, CONFIG_ZONE_DMA32 and CONFIG_HIGHMEM are set or not, that's not so convenient. We'd better show the zone type directly. Signed-off-by: Yafang Shao --- include/trace/events/vmscan.h | 9 ++--- 1 file changed, 6