From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FDB93A0E80 for ; Tue, 14 Apr 2026 10:10:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776161439; cv=none; b=aFcg8pZHQ4j3/IcSJAdd1OtvN3bLs41yzivXuO4wp1OkMi148AoFAakTuJtIWR1cFLn9ip/kBBDEPUncLvVbkfATdqsnV3mLLm/2xx6ADN/vbIwdjh03aTntOIfulCvfh9lZD74vADESo2yQ4KpVx6kQk0FSKEiVYop5B9i9+NE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776161439; c=relaxed/simple; bh=pjyhBuuUl8zeMHvA+NmoeTHzTUpdmg1gzzpVy9Dfdcs=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=qJQEKi9ShzJvEyP6dFz7kF/juMqujjinhyFfUo9nK6qV+JOiGsldtytKYe1riOOLuHDH/zlai/Sxgk8e2IaVZMMpC7bnXaOg3eN1btaDx+zvB+v/TVwAWPTbyl/YhQnV5ObuYiF1cxw8GLx+Dxt8OVHGbWbAqqzMnok3o2fx1b0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ot+4TMHu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ot+4TMHu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B471C2BCB5; Tue, 14 Apr 2026 10:10:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776161438; bh=pjyhBuuUl8zeMHvA+NmoeTHzTUpdmg1gzzpVy9Dfdcs=; h=Date:From:To:Cc:Subject:From; b=ot+4TMHuB72hyQgWZOH+Udc/0smWJPAq/LFioOC+JQAaBnYVCBx6TcjLKEVB43lc9 1JYCTC0K/xJ1qpXKwRF6TAtiQYv/lrLxg+04frbCD7B9RkbSP4hl1TxNniI8SyHiZh kAg3d9kNTib5NmS4r1nRt4PGpsriTE/QwUTJRb7TjZ0BMnkLHHJJZEjo+R87AcnT+m eQnGDF+KZNWcz6D4W75UNqFQEu0IV+sL0gT/BNuHUIqFutBIXRr8oI8qVG0xxRoI7t mNpfjfvD9tViEanJZB4G5HHFFB0TCBi4BhHdKs3SYY1YyfYOOSEmtLUlHoPhFL+TdT Ef9dP4b4nwsFw== Date: Tue, 14 Apr 2026 06:10:34 -0400 From: Steven Rostedt To: Linus Torvalds Cc: LKML , Masami Hiramatsu , Mathieu Desnoyers , Mark Rutland , Andrey Grodzovsky Subject: [IGIT PULL] ftrace: Update for v7.1 Message-ID: <20260414061034.7d94bd16@robin> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.51; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Linus, ftrace updates for 7.1: - Speed up ftrace_lookup_symbols() for single lookups The kallsyms lookup in ftrace_lookup_symbols() does a linear search over each symbol. This is fine when it must match multiple strings, but when there's only a single string being searched for, using a binary search is much more efficient. When a single string is passed in to search, use the binary search method. Please pull the latest ftrace-v7.1 tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git ftrace-v7.1 Tag SHA1: d8d55b3c7933467836361e43916fc08c083d74cf Head SHA1: 93e8fd1a565eb5d0c0bbcb18d00095ad255b6ecb Andrey Grodzovsky (1): ftrace: Use kallsyms binary search for single-symbol lookup ---- kernel/trace/ftrace.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) ---------------------------