Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp947946imb; Fri, 1 Mar 2019 20:39:52 -0800 (PST) X-Google-Smtp-Source: APXvYqz/F/L+8Vm2idbeuF20Jj6l7DsahT6n0V+MQMx9PQCAWj1xsy3ooyPXTSSJ13Ei1ZxpQ4SD X-Received: by 2002:a63:1061:: with SMTP id 33mr8215098pgq.226.1551501592681; Fri, 01 Mar 2019 20:39:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551501592; cv=none; d=google.com; s=arc-20160816; b=JO4POv+Lf+u5B5jLyi35dqQNrO1Uk9YF2PVghcM2+JHaywtuD0F1hop0yLuzp7fQ9I 8shtISTTsG+8EwA+YXD2BoWk0Ly7ZmLBNxbBwmOU6Wejck0s2/sDJX2RDPLVmS7NR6OM EZ05/+oLFKm6IVk8CsgClwA8JT+xRvSWWCcoc0XAe6+kP8k3Lmp414D/mgy+ydPyOKmA xqU50kqiBRjUHGWe0IxqADUYexkKI6JDW3HX3nVd/L+OWpQqIY4iV9W1AhY/mhhkDJOe 9SpW8ItlY/vILC3KGCzpntVRVKQOrH5y44eySIdembaCdjYF3gvUP/uFHL+I3lvcEe+3 Zpig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=E8xVMa3UyuhomxW571zy6yHj+BYk0T3qqrgE0C01lI8=; b=qhiEtF/5s+XzMu+GiG3taE8KP22yTQZYkWU0xnv60UbvLDhImjC937onPXQa7k3zGe OL/N9dBxPtNm+8KIQNq8L0McRjQnjF/8L6mK1XIyLy6iNltpwO/vGVuyhZAAqw9KuIJ7 8/fmI5LUTzVREuxsLsqjb6kXECk0qDE75tVRZl7ar2MIQ9vXctIpkiGLH9oqiAUml44I tIuqfLl8DgI/7dvEcsg77By7AjsEW091yv4g/VfQhwqwoUSy/XEUth/e0gzRwAcHovlr MyFPBaPsy7LJ/xmqaK7ywtMHbsoE237uAG7Mvg3rmdn0IRLO+8ftIDuxyP2P2QAGqntb sFWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QTCUa43Q; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18si22398456pgh.498.2019.03.01.20.39.36; Fri, 01 Mar 2019 20:39:52 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QTCUa43Q; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727526AbfCBEjR (ORCPT + 99 others); Fri, 1 Mar 2019 23:39:17 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34147 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726693AbfCBEjR (ORCPT ); Fri, 1 Mar 2019 23:39:17 -0500 Received: by mail-pg1-f194.google.com with SMTP id i130so12422514pgd.1 for ; Fri, 01 Mar 2019 20:39:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=E8xVMa3UyuhomxW571zy6yHj+BYk0T3qqrgE0C01lI8=; b=QTCUa43Qqn46xL2GJEFIy3N7UKDlwEPNFPIMLCF62SXxWkUAvnVEtC/sHcpVsqXRJF gTaiwkPOaM800+E4W+uo9eGPjv/lRcx9KLrnL2T/QxyXTojp5WmCbl3Ww+jFL55/kqs3 2Xi8cYJuB1oQgCzTgD5YDG1oE1ecIKs8VIFvERZ9GjGQFfKUMNPVJBwtX+ek8PjA2sPC hsI6GWwQLGpkg/MD+Yy0QZ/Xjg50F84/Rnl08tagz0ExUwUT33hC43nTEoUcOh/5JLPf e1Qgfa5VmDcV8S6B85KZkzBCzaKoXxs54o3GQDdLSSRW+nY9lWtWA1TlzwaFut/TCNwG tvQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=E8xVMa3UyuhomxW571zy6yHj+BYk0T3qqrgE0C01lI8=; b=HSCGcZS12ONSofjWT5Ix2bwAEl8pYsRS69NXvj5bM0jTqs0qm1y2vYP25Nk59WAR6I fBzYjSCu/avj5kc2oZADl7Luzrr8N8wNVGrJ8vVK6bFJPm8vGL1jgYTiKcAhSQsVRYde Xabl9hYWORDpkhb9oVp5SvuqIJXeyAYPY0NJpqaCA4IFpscIGQWIpXGKeueIR2yuyd8F ymGZbVCfnZB+k/XiI4X3/yOD15e6RXk4f+rmDyVAAByIReQ7GOS3L/6j6cej2TQC+Oev PjoR3dDB3NR2h349ckXa5aCP5x7N7I13+QRs3LtjuPv/+kB2qJVwFkIkM70ad1UxlZOH j3rw== X-Gm-Message-State: APjAAAWmCKrSEz+vGzWPdhLzNqLhF35j/hJmtfT7IQk6Y9FIFu6s4eNp nq+3sLysgGS/wDVP8igx9lY= X-Received: by 2002:a63:2b82:: with SMTP id r124mr8310326pgr.214.1551501556456; Fri, 01 Mar 2019 20:39:16 -0800 (PST) Received: from localhost.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id a24sm29102508pfo.160.2019.03.01.20.39.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Mar 2019 20:39:15 -0800 (PST) From: Yafang Shao To: vbabka@suse.cz, mhocko@suse.com, jrdr.linux@gmail.com Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, shaoyafang@didiglobal.com, Yafang Shao Subject: [PATCH] mm: compaction: show gfp flag names in try_to_compact_pages tracepoint Date: Sat, 2 Mar 2019 12:38:57 +0800 Message-Id: <1551501538-4092-1-git-send-email-laoar.shao@gmail.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org show the gfp flag names instead of the gfp_mask could make the trace more convenient. Signed-off-by: Yafang Shao --- 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