Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3328763rwi; Fri, 21 Oct 2022 15:00:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7DFA59QQX2J2bxU96Gp82jxQS8lRqwa/yVfG+YDiUZqvT5/aDdMHwO3Z3Cc2E9clGagB4m X-Received: by 2002:a63:8548:0:b0:46e:c0de:9762 with SMTP id u69-20020a638548000000b0046ec0de9762mr3363928pgd.189.1666389647509; Fri, 21 Oct 2022 15:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666389647; cv=none; d=google.com; s=arc-20160816; b=EXZOLztB3wqglQJJ31Flp5N1GZUny1i0zyOcWl7RJBj9D4PzAMW/sVe5l/rshMCIWG xdRZT38Aoi8rQCgyfrEpM6i5LMGF/OXoMRPcDcjePhQQFvohVZo+ciEzxQ0eHnB4dfZw XBe2mnOQ++nllKh+TO5TQ8Bjql8O2lFxioAoq810Li7AX0AtQdp4VQ5hpn4OxM0c6W8q NbuqSQTD2iz3etjRw/MHsJy2fvQFOyVGSA48RUcr/634w+xRoPAlhHuYKPyT/Gn3nuNk miWMfhVt6fjVeqmbfsKuNJZQKPsUW64K9fJwOO5UQI4fjKI0OSJx1YJWCB7yP+eJPEjn zaqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=QSH6Ika2hMJi4A1BLWlSq59oAqn8RdSfZ2xrA3C+GXc=; b=W+QLGWIcJ2guZckM8SREW5BaIEr6OUwOWnG1qo8ldxsqXZ6UIQMQKyKdyitNxykjOE Dtet1BgVWVwHwPevK7yGJl67IyxpRCrbGh38ubTWCzBSWFd6tvxHuLdmOv5KRgUbLCVU qrXao6RGg/2QSgtJ2Q/PZ8h5tPWA7JQksqrnzWqktGARH91TH8EJnVcNcEVG3a7cdPv0 gnXeGTsDe8xqEnZ015N4H8AX134ko2DBfS5psv6n3zsnI3/zR4pOz9NwAiJ6MRoGgrei 8Zy1NHy2hHMv8a99wuk2K3YEvaZSCPBSJr4MeLxZVdKnwjYf+0UFPMjL/soqsXzB6ZNq vU2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QQ7aYppS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020a056a00088500b00565c028c4edsi28336520pfj.355.2022.10.21.15.00.22; Fri, 21 Oct 2022 15:00:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QQ7aYppS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229682AbiJUVak (ORCPT + 99 others); Fri, 21 Oct 2022 17:30:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbiJUVah (ORCPT ); Fri, 21 Oct 2022 17:30:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9107224CC32; Fri, 21 Oct 2022 14:30:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6D0C661F93; Fri, 21 Oct 2022 21:30:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id C136BC433B5; Fri, 21 Oct 2022 21:30:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666387832; bh=odl3zYkOMPgjkzgtfo2vZKSQF7mnCwR7KAENKw8l/Uo=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=QQ7aYppSFi5NZGqmO4ICuXjsT8DEkkTzXoKvjHZPdmbAJcdEOEu/HksnLyFZaIOQ8 C0HUBbziOp0uw9nAf6OynZKy6JKEwPLHCjP5pS7lYElc0jTjmIOJWVf7eWhpa73t+r ATWSr+7Zf/D2tJ9swlfKtA/c18c2ZU0QPisTF/h25dufDOQp79gh9pYESMSmdWhuME Il6fmzo684Ii20+3gBfEfJ0qrN7SCyr84jsGDQbQWpVnVmHNOf9AmrFXdbMG0ODpwv UiK+cjqC9bWyJbvDFblvuQdPKX86XV4h73HP+8yO7QCKb9xm3JjHl2hnPaM7vuSUEX M6pyhOXXZ0hUA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 9EF16E270E1; Fri, 21 Oct 2022 21:30:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] libbpf: Avoid allocating reg_name with sscanf in parse_usdt_arg() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <166638783264.15541.17720155984505413324.git-patchwork-notify@kernel.org> Date: Fri, 21 Oct 2022 21:30:32 +0000 References: <20221018145538.2046842-1-xukuohai@huaweicloud.com> In-Reply-To: <20221018145538.2046842-1-xukuohai@huaweicloud.com> To: Xu Kuohai Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko : On Tue, 18 Oct 2022 10:55:38 -0400 you wrote: > From: Xu Kuohai > > The reg_name in parse_usdt_arg() is used to hold register name, which > is short enough to be held in a 16-byte array, so we could define > reg_name as char reg_name[16] to avoid dynamically allocating reg_name > with sscanf. > > [...] Here is the summary with links: - libbpf: Avoid allocating reg_name with sscanf in parse_usdt_arg() https://git.kernel.org/bpf/bpf-next/c/d9740535b857 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html