Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1963843ybm; Thu, 23 May 2019 09:14:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMNnT8+RR0t3Fqbxyu0cz/VImKBr3IDgp8/51qVua1unsrHzua981kBr8owGfG2kSAc3Ah X-Received: by 2002:a17:90a:db07:: with SMTP id g7mr2344735pjv.48.1558628086699; Thu, 23 May 2019 09:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558628086; cv=none; d=google.com; s=arc-20160816; b=VE7hufoTfLwat4mVAMZ5Uyq5NwMv/g40ZR3IPMaWTMAMie6ruoGdDehYfuP/UZoAbB lb/Ec2OZbmFgwFiO/N+OLf/joByPQnNaN2+F+SJGu4FPkhq7hhgUi9BUk2uccIyVfP1J ANUCqSmWgUZhwVfYhTcc393aVx2tAcHhGYf+2pRU9eH6nrJe2BMYLIt0wOi9jJZ/wXOb I9owGiH7jg3QHure7rPclQ5YxYInJxWyGAerxTdDOuL9y9g4zytzcNOu82E3Chk0PIdf 1I2Y+4yXgBTuH89lGNL0ViY2+Vj90gCcPBaXl2USuavH9ZgVicurfESz2HE3myK9GmiY lrTQ== 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=x93jjlKUqWR0nO4K3vxMjXsWJN4RnzNaTRkE6X6ttKw=; b=pmLJpQhDPxTgv+HPg7q8Kvgpj5Bgqq890C4GHC/9w1tlROUnBroj3HBc5irmy+J4Yk 10MED6ryBeuZ6mIU1aV8vzaXhQ6fV62Ckr2wP4EIHRikCTwLm8dglTO90Bu1EGqY7twM GuuDX+qhnL6tPwWg03LhYTM7uzxd7pRd7yB4aeG/1XyHKCQVrpyKeZ8cCo9/q2UPpKuC wzVeVWHKH23zFMAfIWuwSMQNHDpZ7JT3+ZYmHkbmgmtshQS5335o55gZ4xInRumvyyq9 ZyOsL2vS/3CLhPPS4djuF8gXd7E6jzxYiotxRAmGca9vcmQ5sj+xS7XDZZlU+TMVklLj +O/Q== 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 h5si1177451pjk.68.2019.05.23.09.14.30; Thu, 23 May 2019 09:14:46 -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 S1731181AbfEWQNP (ORCPT + 99 others); Thu, 23 May 2019 12:13:15 -0400 Received: from relay.sw.ru ([185.231.240.75]:51810 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730782AbfEWQNO (ORCPT ); Thu, 23 May 2019 12:13:14 -0400 Received: from [172.16.25.169] by relay.sw.ru with esmtp (Exim 4.91) (envelope-from ) id 1hTqL8-00035A-Ei; Thu, 23 May 2019 19:13:10 +0300 Subject: [PATCH v3] mm: Rename mm_vmscan_lru_shrink_inactive trace event variables To: Sebastien Boisvert , 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> <9b9a8da4-556a-8972-cf87-071ce5099ad0@virtuozzo.com> From: Kirill Tkhai Message-ID: <8d4cd39d-6bca-4161-7134-ac05ffa590b3@virtuozzo.com> Date: Thu, 23 May 2019 19:13:10 +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: 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 v3: Fix comment v2: Changed suggested person 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))