From patchwork Tue Jan 23 15:02:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 19330 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp393679dyi; Tue, 23 Jan 2024 07:04:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuIQ2Zmj4CduMP7UNgRMjEvi8NTKmzRF2gkCDIfSylp5C7cM6N3Wdkcd8lCHc11evSMozZ X-Received: by 2002:a0c:ab54:0:b0:681:27f2:58d2 with SMTP id i20-20020a0cab54000000b0068127f258d2mr995859qvb.99.1706022278231; Tue, 23 Jan 2024 07:04:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706022278; cv=pass; d=google.com; s=arc-20160816; b=Je4aBikwOFcHHst3BmrUveJq+SroAfGavh2yumqh1O/wfFH+ulxCXi1KFEkm6pZQDL p+EOQZQTKCdJDpIbc0rtqxSogFzjudXENfYgGrrho3wEegzAcO9QVaTsAH2vpMBAKfe9 ST1/+GnHZlgTe2gTvSWxvFPzDt7S0/M52spRgghhBgXyCtEoWAjKwzqzJS33RvVXBZ8l pjL0C1k6qjsFBlnLcqjpuDuUa3X01jhX9paT1hSAzYJS/EeVd9QJ2nTboaeFfL/C1G2F wln0Taeg4hfTniBEfRiHBbsBgtM1iC1HS+M8+Uw1KOELlzZtmi0r/lq27Q7sF019yIek no0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:message-id:date :subject:cc:to:from:dkim-signature; bh=i8ucFnxyJWtPL6Xc+uSKKt80qvdQVk6r8VJ9PIRhURs=; fh=LBIueuLWJJWHxyU4hm5JIqvIjL/4JP6mHBzM9UMkE+w=; b=CkkBw4VQh88PNXr5nI9S2UCIuzMT8KUQWfoSs2v1+UnMhSPWn0HenWPFqPdjOxedc0 Tp85t8jl1XDvXNyPhD7MKIRrSObCn9WCcsThzjSEuRPvU3IQYqPhTIzSeklLNHD0XiKd rdxI567rtCCCR4ytsxEvKiHC6/p7vTRIsb0gvhx1WjC01GkgyWASfMz+becUNxvgQQAY nQ6L2kS707GLq3Q887ZZU1LDMSnvBc696NPQ2c+Axy1hoPXK7FtHlaWc5qlYvKb3C8Zg HoA9G9zZm3iJ2okS6Lg/wo57kpx0kcVFFUqHE0yJ4gHsL9HjRk1lyhbcRlacu0M8owmO LmWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DkFPbd16; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35492-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35492-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q2-20020a0c8cc2000000b00681935c784asi151486qvb.606.2024.01.23.07.04.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:04:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35492-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DkFPbd16; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35492-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35492-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CB9261C26CD0 for ; Tue, 23 Jan 2024 15:03:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 306A75FEE9; Tue, 23 Jan 2024 15:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DkFPbd16" 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 7D7125FDAA; Tue, 23 Jan 2024 15:02:27 +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=1706022147; cv=none; b=WQP3ggfoYoj0JaXBODtQghv6EeSLVq9j1Av0nIuDgHfCPQpmijZ2s58VWtFUZiBNKzB3AKJ4AOiZzxCevBxuaLjvlLzmQSjqTdoo/g7oMO8nGcOZf0bTq8K8Tq1ozPzHhewe83dAGYU/cjsgFIjcnBmWpTbk8Khb42aPOIi6dOI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706022147; c=relaxed/simple; bh=c55w7bNYVc+/PvGNzvXmIarNgAUxg847kHKA77JNnc0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=TyFKieN8kUeD9OcyVHppw0HZy1hAf4lIyA8s4WLcLiuc10zklSm7lU328JKeFSeiQMg8U5NzfZIKkFZuqTQlVrGvgiE0YX7/B8PUXyKrhEOUjSBydjBTfmnLrH8SyOlH1vIpinTZHMrUF3rCw8qxSI59NMlwbrjQtWqysRHBZss= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DkFPbd16; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F0AEC433C7; Tue, 23 Jan 2024 15:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706022147; bh=c55w7bNYVc+/PvGNzvXmIarNgAUxg847kHKA77JNnc0=; h=From:To:Cc:Subject:Date:From; b=DkFPbd16B7eo+m35zewPwpfGW8OFongXs9gXKgsc5czh3fGnGmNGKjI/CQGOeQ2Re jCLea4BNT6AHbNFPilYwcfTvFYLswvelMQ56KeRZU8ukGee/n2ggQWhnZgFtPkEmbt g1qTFagY7GhwHbYDoFH6LQ/e2v9UTJV4fW+thUlKh5u3KnT0aINbHJ+SSImjYrGZdL SAYzQVwT/bKsAH3JO+vLeH9bIELLNM2znN5PeNk/UfO/6snR2riciBc4qlIgcJQpYr g/6BgYxUx8njeLBVRgchNDpKi+Y3HXdcyfZZc2CPJBipIqaUIbhKNvuCgm3szHawzg 3PdMLdG8QWaYw== From: "Masami Hiramatsu (Google)" To: Steven Rostedt Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] tracing/probes: Fix probe event argument parser Date: Wed, 24 Jan 2024 00:02:23 +0900 Message-Id: <170602214309.215583.16731124846112910621.stgit@devnote2> X-Mailer: git-send-email 2.34.1 User-Agent: StGit/0.19 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788894016431630833 X-GMAIL-MSGID: 1788894016431630833 These fix two bugs in the trace probe event argument parser, which I found while I'm cleaning up the code. One is just adding an error message to message log buffer (but it is important to check the reason). Another is setting the size of argument entry correctly with argument data updated by BTF. Thank you, --- Masami Hiramatsu (Google) (2): tracing/probes: Fix to show a parse error for bad type for $comm tracing/probes: Fix to set arg size and fmt after setting type from BTF kernel/trace/trace_probe.c | 32 ++++++++++++++++++-------------- kernel/trace/trace_probe.h | 3 ++- 2 files changed, 20 insertions(+), 15 deletions(-) -- Masami Hiramatsu (Google)