From nobody Wed Oct 19 21:03:01 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mt3915MMzz4fSHN; Wed, 19 Oct 2022 21:03:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mt3913WmVz3HY8; Wed, 19 Oct 2022 21:03:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666213381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lvrsiDOFcsmQ3gfj6IM4yjrvWAxlqiv7Y9/RteK0Czg=; b=Mp+KRdVKebsSGIk/ZhJuTFvXUTgzDJ0S/Bv9/MCSYgtGGZwG0xwtng3Y1d1DJfSE4dTQHQ TQj3KUJVgL4sZAl6zkgs2fZ+xryf+T87+S0Gn3ncJ3keLgaVNG1oRarqfCwhIkSquhrTzv S3tEEZNG9hf8htGgoZ9gDwZCzWhoRDJGET0PDs672+NbHU28IGGXM+q83/moMpZu/as+Wh aB3G+VVacaSQ61N2HIYdj2w3n6G0AqHq4TRaRvZWhuqorfEait/K2t30arhs8Lo2sJpocT nNeJLn/0IZEW4HDiKJqwkE7bbYV0hpiqY7JkW1VsSUmj+jUqtbWqJFCWOV29kA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mt3912XvvzfMm; Wed, 19 Oct 2022 21:03:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29JL31sI047946; Wed, 19 Oct 2022 21:03:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29JL318k047945; Wed, 19 Oct 2022 21:03:01 GMT (envelope-from git) Date: Wed, 19 Oct 2022 21:03:01 GMT Message-Id: <202210192103.29JL318k047945@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Pawel Biernacki Subject: git: a20a02abcdc9 - main - pmc: remove write-only variable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kaktus X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a20a02abcdc99b39d9d8edb56d6b546ea7f757cf Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666213381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lvrsiDOFcsmQ3gfj6IM4yjrvWAxlqiv7Y9/RteK0Czg=; b=vjkzwBUxwBdFW0LtB0qvhLYjtzMoGCABI7o59XGINshVLU8U+WnhI5E74fl6I9TR+PuCLR XNfkzt/ENJJyd+V47taEExAwzO5gKOwV7fscEG9J33/skdnp+BrIzSROfTjZHH7MP8i2ae 4b237vBpPyvNgdJrJt9aZolN/DqEN9EqVrurtPzX0EVtdCINmBSM/cz+bDlj71wNXklmNS 2e1+zkIgw7XJFpfR6ZURoSFLuAL6wka2gpHYiFuZ/PI+anKYxvlKF4t6IIndvxdzU1RDfL dxikhGO83FI617D4tzKoRcYUUWQm77++DoKVafnGZI3BRQSWKRC0Va9hCqzVXQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666213381; a=rsa-sha256; cv=none; b=SuCqJoFqxxCxmFNVE8KuOwVgRFHfQaYP2Kds1JD55DhCy/ec1ciJDncGGKDvJVqrAKrqmw Y4NLr/yzoa1Odu2MVRDFGcmtfd+8HLlJhQrwIbP7LX1pNxsypv8a3n0cnw1Jd5TCaCJgBn InrBmtNMyFXjA2vLz9uORiiq0OFVlNiDNMKLUiAMwX14O6hn1wUxZv5apAdHWFZhW8erO9 TENDDUJ+uY0KFZ25Crzp3bj8fTvo2tTUYP7YmAljcveDgmm1e3zKgKhZ0K6cJQIhggB4bX kysM9Y/0iCNTy2zABJz1KNk8VpnL5l2tn6ZI21YNEyQftI7bUIk/8I/burA6yw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kaktus: URL: https://cgit.FreeBSD.org/src/commit/?id=a20a02abcdc99b39d9d8edb56d6b546ea7f757cf commit a20a02abcdc99b39d9d8edb56d6b546ea7f757cf Author: Pawel Biernacki AuthorDate: 2022-10-19 20:59:23 +0000 Commit: Pawel Biernacki CommitDate: 2022-10-19 20:59:23 +0000 pmc: remove write-only variable --- usr.sbin/pmc/cmd_pmc_filter.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.sbin/pmc/cmd_pmc_filter.cc b/usr.sbin/pmc/cmd_pmc_filter.cc index 07027cb272f9..7f2fae6d208b 100644 --- a/usr.sbin/pmc/cmd_pmc_filter.cc +++ b/usr.sbin/pmc/cmd_pmc_filter.cc @@ -208,7 +208,7 @@ pmc_filter_handler(uint32_t *lwplist, int lwpcount, uint32_t *pidlist, int pidco char cpuid[PMC_CPUID_LEN]; char *proclist[LIST_MAX]; char *threadlist[LIST_MAX]; - int i, pmccount, copies, eventcount; + int i, pmccount, eventcount; int proccount, threadcount; uint32_t idx; idmap pidmap, tidmap; @@ -247,7 +247,6 @@ pmc_filter_handler(uint32_t *lwplist, int lwpcount, uint32_t *pidlist, int pidco pmclog_close(ps); if ((ps = static_cast < struct pmclog_parse_state *>(pmclog_open(infd)))== NULL) errx(EX_OSERR, "ERROR: Cannot allocate pmclog parse state: %s\n", strerror(errno)); - copies = 0; while (pmclog_read(ps, &ev) == 0) { if (ev.pl_type == PMCLOG_TYPE_THR_CREATE) tidmap[ev.pl_u.pl_tc.pl_tid] = ev.pl_u.pl_tc.pl_tdname;