From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754373AbcCXPvV (ORCPT ); Thu, 24 Mar 2016 11:51:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:50977 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751324AbcCXPvN (ORCPT ); Thu, 24 Mar 2016 11:51:13 -0400 Subject: Re: [PATCH] mm/page_isolation: fix tracepoint to mirror check function behavior To: Lucas Stach , Joonsoo Kim , linux-mm@kvack.org References: <1458236456-465-1-git-send-email-l.stach@pengutronix.de> Cc: linux-kernel@vger.kernel.org, kernel@pengutronix.de, patchwork-lst@pengutronix.de From: Vlastimil Babka Message-ID: <56F40CEE.9080201@suse.cz> Date: Thu, 24 Mar 2016 16:51:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <1458236456-465-1-git-send-email-l.stach@pengutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/17/2016 06:40 PM, Lucas Stach wrote: > Page isolation has not failed if the fin pfn extends beyond the end pfn > and test_pages_isolated checks this correctly. Fix the tracepoint to > report the same result as the actual check function. Right. > Signed-off-by: Lucas Stach Acked-by: Vlastimil Babka > --- > include/trace/events/page_isolation.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/trace/events/page_isolation.h b/include/trace/events/page_isolation.h > index 6fb644029c80..8738a78e6bf4 100644 > --- a/include/trace/events/page_isolation.h > +++ b/include/trace/events/page_isolation.h > @@ -29,7 +29,7 @@ TRACE_EVENT(test_pages_isolated, > > TP_printk("start_pfn=0x%lx end_pfn=0x%lx fin_pfn=0x%lx ret=%s", > __entry->start_pfn, __entry->end_pfn, __entry->fin_pfn, > - __entry->end_pfn == __entry->fin_pfn ? "success" : "fail") > + __entry->end_pfn <= __entry->fin_pfn ? "success" : "fail") > ); > > #endif /* _TRACE_PAGE_ISOLATION_H */ >