Message ID | 20221028180128.3311491-1-namhyung@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp971214wru; Fri, 28 Oct 2022 11:08:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4u6WcjRWdKenN9Aob2Er3AyPRUzKZyS/+HbVYnvPeCq3IJfCfhfvZUUkARfrIE0N/ocJaW X-Received: by 2002:a17:907:7f02:b0:73d:dffa:57b3 with SMTP id qf2-20020a1709077f0200b0073ddffa57b3mr549435ejc.19.1666980512001; Fri, 28 Oct 2022 11:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666980511; cv=none; d=google.com; s=arc-20160816; b=Xez/dbM4Kt0xCd/cxOTVJTn8CobrPyrek4RLOwGAEtlpOSgbBUfF9JcUj24FB2CXwe anmlruDdrIDN59X2xW37s1KY+xjN/CMbtQq6Vu4w965Gi/NwstkNcIn3/rxaqenXYdoF JrvYC7+s+jiaaCmtmx/YHFtnBdlR+Zl0Seto+aqeaAWZzAMGeEp9ofAv+t0sSOv/Ps+8 7ok7j7jZwQ2IaaBrtL4EosJx32svabLkDRgGY1065AxTYtxOR4aM2t6mseTbLe/EVsE5 /EZTMP0wbJyA7xE+2XwQILPl2/BA+QWajjpHn6EFoCPhDj7ntxYb3M/a9vbAoLyzZhJ9 uVZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=E5Fawjdz//CY913JJ5jwFxvwPuQZcfdesxaOJNGqcAY=; b=H9krsflr3wEDoPLZmK+hd3jmipNA8oWqqUGsTZinWXKKmuv6PxY4iyAn5EF7dBbddR jS50glfksS9NWywb6puQoEDD0CtBxOCrj4iIidSD9pOIvcFcDXaIw8kyFS51nKQC7B/s 6na3b9L5YQ58m3b9ntlY2vvNDg7oPll25i+bBuxr46x8SB6pULAw88F0VMELFFAeadGa +jLcgZnIANBRvPiEoglGZv9sUs2kZGPHiNSuOZASmUaAB/eWC37XjWQsGVbJdpqn2vBz Qtr9O8QkC7beG16xJ09AL2W5I1Vn83GEnAP/3JDAa28QOpFIuds6WCoacBtJQIVPk0Nl yJ/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=o+GFBeri; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs21-20020a170906dc9500b007708400bee5si5249274ejc.1003.2022.10.28.11.08.07; Fri, 28 Oct 2022 11:08:31 -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=@gmail.com header.s=20210112 header.b=o+GFBeri; 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 S229890AbiJ1SBf (ORCPT <rfc822;norden.jeffspam@gmail.com> + 99 others); Fri, 28 Oct 2022 14:01:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229846AbiJ1SBd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Oct 2022 14:01:33 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D8F61E8B84; Fri, 28 Oct 2022 11:01:32 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id l6so5342409pjj.0; Fri, 28 Oct 2022 11:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=E5Fawjdz//CY913JJ5jwFxvwPuQZcfdesxaOJNGqcAY=; b=o+GFBerinI2XeQJSXO2qlJ5+Du+CeHTM9pXn2DZeJNlGYjzpa5pAqbVUuN67AfrRmS N45NOKjC8F1cIWVHLxCv1Vobk0gPZbiZNWXiDO0vePMHt6ubtCed+StgebAf8NumhDQL 4o2EEEotQw7chMXocG3G0nX/Vr0ctP+OKNetj5EIaXuC0m6h9mIgdOGCjaKD6k8Vr1oZ Q6QDTTpExSmzd+V2W99oIxZ9sSc6azIrbL3o/iGVViTAYMQbO933epSAqRp7DDjy0ybS lKzJnioXaQ4g1VG6kC1AzQIfseSSfzuuWFGVVb3h7XQNdfKHRCUd28ofKlvI72HtOETG yYcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=E5Fawjdz//CY913JJ5jwFxvwPuQZcfdesxaOJNGqcAY=; b=J0vj2qM6RsKEnb/qGmsJvnaePlAm1GndJmK8D8or+wiBS/EC8wrHCrjNMUVy1EtMj8 raW5+83WV3cM0RGChwqYzU/A+bG2zfgybpv006xlfVH9WNleHgqvWRHuVmJm8GgUEaD4 itv3wTmVk4SPUGs8nq9Ki54ZVOvXyMvxChFfhsSSoaKRKiwpLqO9JjFxa0s1VbsXFLmc QEhD93gIE4flfFP+vLShyGjiHJxWAlLldQUKMcP4uIuN8jjScMyW77/er3g8qIXk5sRE wKmD8K3D0mhWv+PuLoZJZRSKlGptVvzZEQ+2gtRRYxbGiGTDt1OGGg5OuQfK+9FgLA7N gDWw== X-Gm-Message-State: ACrzQf1H22ZcLvil2Y5gLHA7O2lSVvdrxsFNHz7ss/3dRhcdSU2EnzAQ m4VFZpz6mQJNSR6Dv0dKfKc= X-Received: by 2002:a17:90b:4b46:b0:20a:e906:426d with SMTP id mi6-20020a17090b4b4600b0020ae906426dmr533181pjb.48.1666980091847; Fri, 28 Oct 2022 11:01:31 -0700 (PDT) Received: from youngsil.svl.corp.google.com ([2620:15c:2d4:203:976f:f075:7c14:87a2]) by smtp.gmail.com with ESMTPSA id n3-20020a170903110300b00186b86ed450sm3400236plh.156.2022.10.28.11.01.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 11:01:30 -0700 (PDT) Sender: Namhyung Kim <namhyung@gmail.com> From: Namhyung Kim <namhyung@kernel.org> To: Arnaldo Carvalho de Melo <acme@kernel.org>, Jiri Olsa <jolsa@kernel.org> Cc: Ingo Molnar <mingo@kernel.org>, Peter Zijlstra <peterz@infradead.org>, LKML <linux-kernel@vger.kernel.org>, Ian Rogers <irogers@google.com>, Adrian Hunter <adrian.hunter@intel.com>, linux-perf-users@vger.kernel.org Subject: [PATCH 0/4] perf lock contention: Small random fixes Date: Fri, 28 Oct 2022 11:01:24 -0700 Message-Id: <20221028180128.3311491-1-namhyung@kernel.org> X-Mailer: git-send-email 2.38.1.273.g43a17bfeac-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747955757319397465?= X-GMAIL-MSGID: =?utf-8?q?1747955757319397465?= |
Series | perf lock contention: Small random fixes | |
Message
Namhyung Kim
Oct. 28, 2022, 6:01 p.m. UTC
Hello, This is a small update for the perf lock contention command. The first issue is from msan (memory sanitizer) related to uninitialized memory access and use of variable length array. The other is to increase the default stack skip count to find appropriate callers in most cases. You can get it from 'perf/lock-con-fix-v1' branch in git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git Thanks, Namhyung Namhyung Kim (4): perf lock contention: Fix memory sanitizer issue perf lock contention: Check --max-stack option perf lock contention: Avoid variable length arrays perf lock contention: Increase default stack skip to 4 tools/perf/builtin-lock.c | 30 +++++++++++++++++-- tools/perf/util/bpf_lock_contention.c | 43 ++++++++++++++++++--------- tools/perf/util/lock-contention.h | 2 +- 3 files changed, 57 insertions(+), 18 deletions(-) base-commit: a3a365655a28f12f07eddf4f3fd596987b175e1d
Comments
Em Fri, Oct 28, 2022 at 11:01:24AM -0700, Namhyung Kim escreveu: > Hello, > > This is a small update for the perf lock contention command. > > The first issue is from msan (memory sanitizer) related to uninitialized > memory access and use of variable length array. > > The other is to increase the default stack skip count to find appropriate > callers in most cases. > > You can get it from 'perf/lock-con-fix-v1' branch in > > git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git Thanks, applied. - Arnaldo > Thanks, > Namhyung > > > Namhyung Kim (4): > perf lock contention: Fix memory sanitizer issue > perf lock contention: Check --max-stack option > perf lock contention: Avoid variable length arrays > perf lock contention: Increase default stack skip to 4 > > tools/perf/builtin-lock.c | 30 +++++++++++++++++-- > tools/perf/util/bpf_lock_contention.c | 43 ++++++++++++++++++--------- > tools/perf/util/lock-contention.h | 2 +- > 3 files changed, 57 insertions(+), 18 deletions(-) > > > base-commit: a3a365655a28f12f07eddf4f3fd596987b175e1d > -- > 2.38.1.273.g43a17bfeac-goog