Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2222345imc; Tue, 12 Mar 2019 09:19:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKcGpwjzSMB0HqDGMM9uKle7VLui7MiDQ+xCBZaZ97MKc7SEAXwpYJ2iGRFeS8KbKdp9ST X-Received: by 2002:a65:5685:: with SMTP id v5mr19649886pgs.365.1552407546008; Tue, 12 Mar 2019 09:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552407546; cv=none; d=google.com; s=arc-20160816; b=wSf9L4pJRttoznx4INOpJA4BuBv4+gzCGVmLwVcCZ5A76JZOAhLYtP/aPaRct7iZqh 9C0bWEzr21wacNugd8PSKicC6OqJYf6Mm0VdjFbQuwJaC/lzGawnWK2LDvGUQkwddnQ/ 1dzbKs+4ttjQb1i5DEbudTov2fsrl8gUhHm3ozIrgpdT9Eoe3dalG2kXe5eOHAQ3sBul YZyt9nowYUwWb2lyuYShei6pocUfXavGpttMKEdUW44tTW+sdvM0//lAGOYyW0oGMYbp wwLnV5z52dljnyIEl1shCl76Ev5YMzWoG4ANl/lZzzceg1wf59dasJScIRq9D5FYsMpF 4Zug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+RbjKu/99KkMjVZ7JEAAIWOOj9MvfWz0DNvu3AS+26Y=; b=IZSxfd1jNuYht9AqZ3vrLkSxxcUkf+b/gw6OIet1Ph6L3rYgMBEg7ZOjGcv2MDvW7w e72Kg4ZEqdLxRvVY99Mbf5dZuPEJ1twq9q3UhHUU/lAS3E+tpWnHGrwKZQfbVHTEgdDr XvyOvgO/ZiynXBIawlydVaicVVgV7gm83xzo6nHe+Eg9Gekj5szNtYizpTsG8KScaGqu JvI13Hr6gz1M8liSWOJqxlZAqUj98kUEZUO4tBkKgUVlBNtvuDqCXGb3WqbVMmElwpCa 4eWn9ZPtFAihDQr2ifL+grk9dcZ+bb2a5CD7C8zyWLD/6kfATpJmRSS35spk9gML7g4F z+PA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k190si7977925pgd.288.2019.03.12.09.18.49; Tue, 12 Mar 2019 09:19:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726385AbfCLQRI (ORCPT + 99 others); Tue, 12 Mar 2019 12:17:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:52132 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725894AbfCLQRI (ORCPT ); Tue, 12 Mar 2019 12:17:08 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 25416AC3C; Tue, 12 Mar 2019 16:17:07 +0000 (UTC) Date: Tue, 12 Mar 2019 17:17:05 +0100 From: Michal Hocko To: Yafang Shao Cc: vbabka@suse.cz, jrdr.linux@gmail.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, shaoyafang@didiglobal.com Subject: Re: [PATCH] mm: compaction: show gfp flag names in try_to_compact_pages tracepoint Message-ID: <20190312161705.GB5721@dhcp22.suse.cz> References: <1551501538-4092-1-git-send-email-laoar.shao@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1551501538-4092-1-git-send-email-laoar.shao@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat 02-03-19 12:38:57, Yafang Shao wrote: > show the gfp flag names instead of the gfp_mask could make the trace > more convenient. Agreed > Signed-off-by: Yafang Shao Acked-by: Michal Hocko > --- > include/trace/events/compaction.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/trace/events/compaction.h b/include/trace/events/compaction.h > index 6074eff..e66afb818 100644 > --- a/include/trace/events/compaction.h > +++ b/include/trace/events/compaction.h > @@ -189,9 +189,9 @@ > __entry->prio = prio; > ), > > - TP_printk("order=%d gfp_mask=0x%x priority=%d", > + TP_printk("order=%d gfp_mask=%s priority=%d", > __entry->order, > - __entry->gfp_mask, > + show_gfp_flags(__entry->gfp_mask), > __entry->prio) > ); > > -- > 1.8.3.1 > -- Michal Hocko SUSE Labs