From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752600AbcGFCbu (ORCPT ); Tue, 5 Jul 2016 22:31:50 -0400 Received: from LGEAMRELO13.lge.com ([156.147.23.53]:59835 "EHLO lgeamrelo13.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111AbcGFCbs (ORCPT ); Tue, 5 Jul 2016 22:31:48 -0400 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 165.244.98.204 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 10.177.223.161 X-Original-MAILFROM: minchan@kernel.org Date: Wed, 6 Jul 2016 11:32:32 +0900 From: Minchan Kim To: Ganesh Mahendran CC: , , , , , , Subject: Re: [PATCH v2 1/8] mm/zsmalloc: modify zs compact trace interface Message-ID: <20160706023232.GB13566@bbox> References: <1467614999-4326-1-git-send-email-opensource.ganesh@gmail.com> MIME-Version: 1.0 In-Reply-To: <1467614999-4326-1-git-send-email-opensource.ganesh@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-MIMETrack: Itemize by SMTP Server on LGEKRMHUB02/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2016/07/06 11:31:41, Serialize by Router on LGEKRMHUB02/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2016/07/06 11:31:41, Serialize complete at 2016/07/06 11:31:41 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ganesh, On Mon, Jul 04, 2016 at 02:49:52PM +0800, Ganesh Mahendran wrote: > This patch changes trace_zsmalloc_compact_start[end] to > trace_zs_compact_start[end] to keep function naming consistent > with others in zsmalloc > > Also this patch remove pages_total_compacted information which > may not really needed. > > Signed-off-by: Ganesh Mahendran Once we decide to add event trace, I prefer getting more detailed information which is hard to get it via /sys/block/zram/. So, we can add trace __zs_compact as well as zs_compact with some changes. IOW, zs_compact trace_zs_compact_start(pool->name) __zs_compact trace_zs_compact(class, scanned_obj, freed_pages) trace_zs_compact_end(pool->name)