From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 303943BB11A for ; Tue, 26 May 2026 11:15:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779794101; cv=none; b=rvDFfbjDA96lpGT1G2BWTBfNX/DRLVM2M6SrrIOua0nO9X+NNvWADj+GnYnMpT1462nj5/v3alcP2jXzUsYuWjil+iYVhwPRX3sY7B7URetKAGC42OCVmXD3UODzo+Y3dLCYdSDq6k71xigzflhKaNVWmlECtQLin1pDo6nBOjw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779794101; c=relaxed/simple; bh=vQXfq0gYmCNESGB8jMRQCwKlrdaoe1rrMyRzxNgZvdg=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=XF8Rffe7G7UfctJAuaJrP41RQX+rRrHwQTh6h0QFd8Pr5Q/kE+kVHiouKLXHEYa5hLUhJAz/W7xNc8ai6PjrxkEubVBVoM3vqWTYewlv4m7cde08U8chpxi87x5GMn7On1gDXEiKgPxFRTGP2FLNbsxWG13XGZ85aeyXIg93uV4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=PPswd+bs; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PPswd+bs" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-43d7645adbdso6545989f8f.1 for ; Tue, 26 May 2026 04:14:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1779794098; x=1780398898; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=8tvNdoKgZb+Yh+wKgqesQHx29EoMvUjDvacbOY8GHhw=; b=PPswd+bsmWUeovWDfODZ2kfkYrb2gklvTIvXesEY3iQEellQo2NE4idlOmskQgJo0W qKyJQ1XQXEAuZ4GzQI2lEqfEOE6uixPri/IrgWlwB4Jb/mOpXHOhC2nxQsFWiqnHbFyd FGqfYnmq9VkrVwrd0EMyxs0mddRf2miAgaGEagYgO8LHjdrLYjFDgGRJM5m/W+/efzKe V6U2ElchHJeOJufpygH+aw5pql+bRpmIPWBOF1FCn0Q+C1YOf2oWjYMbUBkKwVKA5bO5 OokZSjOoSG03Ed3QX7Yy25qU2Q/V/OIdxzA4UHvODsr7KXoI4OvefR3ukS0zpgLonpUo aZ+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779794098; x=1780398898; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8tvNdoKgZb+Yh+wKgqesQHx29EoMvUjDvacbOY8GHhw=; b=JXVTMKF9r94XvEXH25Xs4FwIQuydyJQsJ7ZuAOGQOdrI2dGf1dKOaT1IotHqE8DveS Mt8qMFB8/BlaPBbPmti6ytU/OXvY4FB0bsyZW5207qmNYGWh64GZu6RPeXeW7He3bdn0 RHff9G9siwzKfID00R1Y7MvdGQ6D2BuqxucwDeNZKp1Et9py/OLfwHCbdnogV0lb8xdP LMNl+KAq6VTz7BJaFqfp0H+EjCLP3UakBtDDVanhydODyIo6J5+KV5BO9lvzFCEk1qhL l2+3MWKv0K91pwfMrJovXsZ3tlaagIQg+WG8S+S2RAi+2sVMD57U8YR4UK/Tn0F5nu3G mCKg== X-Forwarded-Encrypted: i=1; AFNElJ/mR+5W+UIhhM7MjO/y6X5TWS4DPzTP381g8V8iSwYbsVMVleU/t0Ct59xZjnzKzrzWZAoqW9ekUclJHuY=@vger.kernel.org X-Gm-Message-State: AOJu0YzPy7mPBUFl/UIBj1wlJHjS2OFcIvo2VLkq2RXJadp9yqKaJkwe duThofJuJLzVOxfJdsQ02tnVOxBJoIHk0YYT1U6ZHWE6uuT19SdBomfKmAxBooKqPrM= X-Gm-Gg: Acq92OEuAR+fesPtBZHFMlkcYBDBCPELhw5a/xHDw1nHT5lJBBXuzNF18W7dVekvofa 2wAUshETkLYkwXSFYkM/ers7QGlxzyEJJ71FaDlaDevMgnZ6BaJjRwjHJ8ZmgnjP0av9p19KS96 GbKkGbEZyq1ohXz4gpjSYSB4xeKlQdE0ydS+cgZd2d9XIKQ8H+z1fGZ5tGtP7YO+TW5nC+hLjQK TjvsOzhuhYa2qu4jdMy/3Q69Zg9usOm8k6nSdSDzR/wRzTMaQ5skuxYR9bSctt63BsyRbtlm/5N aVqZxdFc88NKJ8scrQRUEBVF5NUP28vf55MD078L4q/tlJDoLPNFiJZSDSrb2idqZANd0zlKLTH wHzjyp3LSnUVkryeGe/fB5eWmxmhU/5BnUNvHR6rKB0+INaffIAH+BkAFNHyOm0p42we9dJKeJq tWlFQd55MtqcstVvFjj8z+X4HrV1D43tuY X-Received: by 2002:a5d:6f18:0:b0:449:acdb:3009 with SMTP id ffacd0b85a97d-45eb38a83bbmr31657204f8f.6.1779794098571; Tue, 26 May 2026 04:14:58 -0700 (PDT) Received: from ho-tower-lan.lan ([185.48.77.170]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45eb6c9f598sm35375627f8f.6.2026.05.26.04.14.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2026 04:14:58 -0700 (PDT) From: James Clark Subject: [PATCH 0/2] perf cs-etm: Queue context packets for frontend Date: Tue, 26 May 2026 12:14:35 +0100 Message-Id: <20260526-james-cs-context-tracking-fix-v1-0-ebd602e18287@linaro.org> 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="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAJuAFWoC/x2MzQqDMBAGX0X27IJK49+riIc0frVraZQkFCH47 l2EucwcJlNEEEQai0wBP4mye5W6LMi9rV/BsqhTUzVtZWrDm/0islN2n3AmTsG6j/iVX3JyZx7 D0D8tOiykjyNA8/2f5uv6A0zxUuVvAAAA To: Suzuki K Poulose , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , John Garry , Will Deacon , Amir Ayupov Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, James Clark X-Mailer: b4 0.14.0 Fix thread tracking when decoding Coresight trace and add a new test for it. Unfortunately the test has to be added as a separate binary like the other existing Coresight workloads which needs a bit of makefile boilerplate. Ideally it would be a builtin Perf test workload, but Perf has a lot of dependencies and generates a lot of trace when starting up which makes tracing tests very slow because all that has to be decoded. Hopefully I can find a generic way to enable Perf events at the beginning of the workload and then I can migrate everything from tools/perf/tests/shell/coresight to Perf test workloads, but that will have to be done as a separate change. Signed-off-by: James Clark --- James Clark (1): perf test cs-etm: Test thread attribution Leo Yan (1): perf cs-etm: Queue context packets for frontend tools/perf/tests/shell/coresight/Makefile | 1 + .../shell/coresight/context_switch_loop/.gitignore | 1 + .../shell/coresight/context_switch_loop/Makefile | 29 ++++ .../context_switch_loop/context_switch_loop.c | 83 ++++++++++ .../tests/shell/coresight/context_switch_thread.sh | 48 ++++++ tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 18 +- tools/perf/util/cs-etm.c | 181 +++++++++++++-------- tools/perf/util/cs-etm.h | 5 +- 8 files changed, 295 insertions(+), 71 deletions(-) --- base-commit: 09d355618f7ccc27ffc7fc668b2e232872962079 change-id: 20260515-james-cs-context-tracking-fix-754998bae7ed Best regards, -- James Clark