Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp294492ybm; Wed, 22 May 2019 03:19:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwI9TmyD/e5l80n/TDZ1Bi8rQsGmDzY3ofe26ORtwKNv5t8qgo980iBPugLsV+dX2B2T5WL X-Received: by 2002:a63:cc4e:: with SMTP id q14mr86784795pgi.84.1558520365679; Wed, 22 May 2019 03:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558520365; cv=none; d=google.com; s=arc-20160816; b=eCcVNd0afScrPfNDMkJbmLevLssQAlRurktsFO+uxPTa7iljmBe1sq1INWj0XAYJvB 3JKhPwh0sZpCA77nQJJu76FDRVd8LVbBS20Wyhsc3TmlS0jWHIOttEFQrtnB5Ung5CFJ iUTp2iSctJQlmT/gb9pIqKjZpOkAs+5oHJHlvwS+zfG/ybBONosNoCycfiAEX30pr03V 0ZAov3CdqQllsScBeGl/YF5lMac2usoT4WgsVqO1IwvslvIQg2lCqUvk7KSagCjg2tmA Vg2HAcPWiPSDrsI4Xov5ZDISXQOyqirf/LJkiGsFjKsSy5Qp7GpDu37+HMOPHhySgokN ORvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=VFIyQPjt4LEpMQA0+I7IS8cKGWUGmHDQJSxRzWvPPDw=; b=eJE+bCS2Xtxn4nVNpGdxhGUQ8iTaGVjCJHe77LgiTGNrd3gz/6S+sBa/gz86OPW9I2 n1wBlYvXu7VP10u8tqE1kFIPVgFiG2W/MQCm1BlOPOJAiNfFk/m+s0pciTAkqrIAdPog 0ORWs8rCYWF88afKzhsGsD5nMjsL45py5lZiKqZWrEz9R1hHGozRXuUykhLIsJ+/MvOV qz825dlAex+bm7wKTjLqyrnfLsgx9AVlVnZrdB8jY8eeYXitk3fG2rkb/wCu628R1E+s RDbNPPdUH1y7EprN18R181cI5yZ6LVtceBcfgsvcKk+v1AS6bqRfN/KCw9ZnseqG5LRW 76GA== 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=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn2si7180740plb.34.2019.05.22.03.19.09; Wed, 22 May 2019 03:19:25 -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=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729068AbfEVKRz (ORCPT + 99 others); Wed, 22 May 2019 06:17:55 -0400 Received: from relay.sw.ru ([185.231.240.75]:44776 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728406AbfEVKRz (ORCPT ); Wed, 22 May 2019 06:17:55 -0400 Received: from [172.16.25.169] by relay.sw.ru with esmtp (Exim 4.91) (envelope-from ) id 1hTOJi-0002Zw-Fh; Wed, 22 May 2019 13:17:50 +0300 Subject: [PATCH v2] mm: Rename mm_vmscan_lru_shrink_inactive trace event variables To: akpm@linux-foundation.org, mjeanson@efficios.com, rostedt@goodmis.org, lttng-dev@lists.lttng.org, linux-kernel@vger.kernel.org References: <155851455676.7870.1951762540769724271.stgit@localhost.localdomain> From: Kirill Tkhai Message-ID: <9b9a8da4-556a-8972-cf87-071ce5099ad0@virtuozzo.com> Date: Wed, 22 May 2019 13:17:49 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <155851455676.7870.1951762540769724271.stgit@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename nr_activate{0,1} into nr_activate{anon,file} since this is exported into userspace, e.g., it's shown here: /sys/kernel/debug/tracing/events/vmscan/mm_vmscan_lru_shrink_inactive/format v2: Changed suggested person (sorry, Mathieu :)) Suggested-by: Mathieu Desnoyers Signed-off-by: Kirill Tkhai --- include/trace/events/vmscan.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/trace/events/vmscan.h b/include/trace/events/vmscan.h index a5ab2973e8dc..c316279715f4 100644 --- a/include/trace/events/vmscan.h +++ b/include/trace/events/vmscan.h @@ -348,8 +348,8 @@ TRACE_EVENT(mm_vmscan_lru_shrink_inactive, __field(unsigned long, nr_writeback) __field(unsigned long, nr_congested) __field(unsigned long, nr_immediate) - __field(unsigned int, nr_activate0) - __field(unsigned int, nr_activate1) + __field(unsigned int, nr_activate_anon) + __field(unsigned int, nr_activate_file) __field(unsigned long, nr_ref_keep) __field(unsigned long, nr_unmap_fail) __field(int, priority) @@ -364,8 +364,8 @@ TRACE_EVENT(mm_vmscan_lru_shrink_inactive, __entry->nr_writeback = stat->nr_writeback; __entry->nr_congested = stat->nr_congested; __entry->nr_immediate = stat->nr_immediate; - __entry->nr_activate0 = stat->nr_activate[0]; - __entry->nr_activate1 = stat->nr_activate[1]; + __entry->nr_activate_anon = stat->nr_activate[0]; + __entry->nr_activate_file = stat->nr_activate[1]; __entry->nr_ref_keep = stat->nr_ref_keep; __entry->nr_unmap_fail = stat->nr_unmap_fail; __entry->priority = priority; @@ -377,7 +377,7 @@ TRACE_EVENT(mm_vmscan_lru_shrink_inactive, __entry->nr_scanned, __entry->nr_reclaimed, __entry->nr_dirty, __entry->nr_writeback, __entry->nr_congested, __entry->nr_immediate, - __entry->nr_activate0, __entry->nr_activate1, + __entry->nr_activate_anon, __entry->nr_activate_file, __entry->nr_ref_keep, __entry->nr_unmap_fail, __entry->priority, show_reclaim_flags(__entry->reclaim_flags))