Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4583669ybe; Mon, 9 Sep 2019 11:17:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxREFEf3I7zFZfzlqWS+X2lkffggQ8m4ZGUMFW+pdbfDzU3ZVrrwAzEn2i8aHGT2pdpf2ML X-Received: by 2002:a17:906:4a09:: with SMTP id w9mr19895090eju.294.1568053055821; Mon, 09 Sep 2019 11:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568053055; cv=none; d=google.com; s=arc-20160816; b=x2Dj9lbPRMz61Fxu4SOn50GeQqyZ2TtOnYUYOogwORv2NK3inM2TsXlNCQygdPLw9d m/pT/yFrUNQEu2FyQxRhDPM3Rh5vzmlpMsT7bKrGew9shS3N3OEFpQZbFy36rjlUygX3 KsPmL6DeTf1yVrDXTK0Tk086PG61bqgDNQ6y1CtlJT7zC1xHXb/pcfyP3yggXVrNw/HC zPtAbcW8B490bp80GeyL6GnOTNjXOvQ7db4X+ojEMvkn/KBieAlPP6gxDa8h4c4CJBCV la4kMopkmmcoGjGwvZTJKya9lSJu/BZFqy9aF9EmF+Pg9RNAWHrjyoiRYWUV2DSesyW3 wrEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=x3ED2udYQj7z21wxhPjtTx0uq5M/bxOgQBiN+Fe7R7M=; b=0jYXPx879GRX091jLEU9kIFOSZ7cHR87bCBdkqcHTDE1JYmLIKkVEaQIql3TQqEuh2 ActKsld3EKAN9rWDSpWsD033wo7tnETCxv2PG67O8jccWsCPSJ2WKx7uLXir4T3vh5Ug FjIApdzg4q5sbvIuvANxyAsaO7GjssdVGd07GP2vG0CUVAqRunDQh5CbFVgmOX+0m8b1 Mi0yqDmNqnZUWB0OkfV9olqP9DkcYiTJ7MtkWv+OHeiviUxnomMizZE46Qmdln6paURm RzNVgRLqHdKA8fBC2APEEGrHHaRMo8SNLP3v4rReSJY4bv/J5eScPOr8V1cXNuD4e7Cs RA9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KSIlE6Wo; 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 d23si9323438edb.55.2019.09.09.11.17.12; Mon, 09 Sep 2019 11:17:35 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KSIlE6Wo; 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 S1731644AbfIIAFN (ORCPT + 99 others); Sun, 8 Sep 2019 20:05:13 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36571 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731443AbfIIAFN (ORCPT ); Sun, 8 Sep 2019 20:05:13 -0400 Received: by mail-pf1-f193.google.com with SMTP id y22so8039360pfr.3 for ; Sun, 08 Sep 2019 17:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=x3ED2udYQj7z21wxhPjtTx0uq5M/bxOgQBiN+Fe7R7M=; b=KSIlE6Woq6KlLFCFP2rT2L2upPFlGWpGebR71QsbqavbP20EqFo2NcPrTMHxvzuHLS xj8pERDYQZVH+9OH9Qxg9eJFtHLipf2BHxPY3lmp11TBIXh5zq/pdstCxpk4SbC17hB2 Wkhl/p4y6E0TJKxsHw0mdEL19juKCd92fzQpRBxrmZmjwgFRPwEy2yaZmHDO6yLtXYwd gckGNGJe+kKPzkMa75j0fQVFxXTRWvQqeSvyDpG8xts1OQQEReGKfNDwqrGtbJEdiFYr KRvB16nwJ1NskSdvkwc74xa2upKqwjdrAPAXY7mRsXmxJ4F3haLsdmiA+KCUoPXedDjH a+yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=x3ED2udYQj7z21wxhPjtTx0uq5M/bxOgQBiN+Fe7R7M=; b=ciySb3Ahq0O02PRniZI6gUOU6fxL/IjdTy60/ud6WFv9dmZwHdtg1yhyZxXuxfxlrN V+Rh3HO+cVqfB1r67vwVOH5um5WW6k5EvbmhNuLyqxfF2zO/x41fVhdBEgZaeafbLbBc Md2x2D4jqZTm3YQduDzwZBEWPUYTh8HPTyDwL6ILL7z4AAnZUl5fQXROyBYtQix+lB4S rMGzv4I/qt24avbiIqRBM2UKacsnQ/8h4wZgPSj6b3VVRHvGmHO4DabZuBhQp/kCdicX jVXD+asbXkhaXM+Urx/v/D3JqMHrSK53ttQ9dfwvI+9l9ma2DeSH0/WIza9fVECJUmsp r+rA== X-Gm-Message-State: APjAAAVTJ5RrQ+No+maMiN+53WsXkAPWxFNgWvPJBErWM9+FPzsWYvOk d1m0fbQFiRvO8tL+UoOZJJPlIBn4FGO//g== X-Received: by 2002:aa7:87ca:: with SMTP id i10mr3551591pfo.58.1567987511273; Sun, 08 Sep 2019 17:05:11 -0700 (PDT) Received: from mail.google.com ([149.28.153.17]) by smtp.gmail.com with ESMTPSA id r27sm15024622pgn.25.2019.09.08.17.05.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2019 17:05:10 -0700 (PDT) Date: Mon, 9 Sep 2019 08:05:03 +0800 From: Changbin Du To: Changbin Du Cc: Steven Rostedt , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH] ftrace: simplify ftrace hash lookup code Message-ID: <20190909000501.mstkqzklma7pm76d@mail.google.com> References: <20190908120545.11614-1-changbin.du@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190908120545.11614-1-changbin.du@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 08, 2019 at 08:05:45PM +0800, Changbin Du wrote: > diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h > index 005f08629b8b..74162bc4024d 100644 > --- a/kernel/trace/trace.h > +++ b/kernel/trace/trace.h > @@ -941,11 +941,6 @@ static inline int ftrace_graph_addr(struct ftrace_graph_ent *trace) > > preempt_disable_notrace(); > > - if (ftrace_hash_empty(ftrace_graph_hash)) { > - ret = 1; > - goto out; > - } > - Sorry, This remove is wrong. Will update change. > if (ftrace_lookup_ip(ftrace_graph_hash, addr)) { > > /* > @@ -967,7 +962,6 @@ static inline int ftrace_graph_addr(struct ftrace_graph_ent *trace) > ret = 1; > } > > -out: > preempt_enable_notrace(); > return ret; > } > -- > 2.20.1 > -- Cheers, Changbin Du