get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2132480/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2132480,
    "url": "http://patchwork.ozlabs.org/api/patches/2132480/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/63a4496260add9c290d39b7eec36fc1caf5f9009.1756973061.git.massimiliano.pellizzer@canonical.com/",
    "project": {
        "id": 15,
        "url": "http://patchwork.ozlabs.org/api/projects/15/?format=api",
        "name": "Ubuntu Kernel",
        "link_name": "ubuntu-kernel",
        "list_id": "kernel-team.lists.ubuntu.com",
        "list_email": "kernel-team@lists.ubuntu.com",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<63a4496260add9c290d39b7eec36fc1caf5f9009.1756973061.git.massimiliano.pellizzer@canonical.com>",
    "list_archive_url": null,
    "date": "2025-09-04T08:11:36",
    "name": "[SRU,J,11/12] perf report: Fix PAI counter names for s390 virtual machines",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e505445bd9d8363c9e53e81b5ee90138fdd539f1",
    "submitter": {
        "id": 89057,
        "url": "http://patchwork.ozlabs.org/api/people/89057/?format=api",
        "name": "Massimiliano Pellizzer",
        "email": "massimiliano.pellizzer@canonical.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/63a4496260add9c290d39b7eec36fc1caf5f9009.1756973061.git.massimiliano.pellizzer@canonical.com/mbox/",
    "series": [
        {
            "id": 472179,
            "url": "http://patchwork.ozlabs.org/api/series/472179/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=472179",
            "date": "2025-09-04T08:11:25",
            "name": "CPU-MF Counters for new IBM Z hardware - perf part (LP: #2103415)",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/472179/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2132480/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2132480/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<kernel-team-bounces@lists.ubuntu.com>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com\n (client-ip=185.125.189.65; helo=lists.ubuntu.com;\n envelope-from=kernel-team-bounces@lists.ubuntu.com;\n receiver=patchwork.ozlabs.org)",
        "Received": [
            "from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4cHXKz2xRYz1xyS\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  4 Sep 2025 18:13:27 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=lists.ubuntu.com)\n\tby lists.ubuntu.com with esmtp (Exim 4.86_2)\n\t(envelope-from <kernel-team-bounces@lists.ubuntu.com>)\n\tid 1uu55q-0002TP-V9; Thu, 04 Sep 2025 08:13:18 +0000",
            "from smtp-relay-internal-1.internal ([10.131.114.114]\n helo=smtp-relay-internal-1.canonical.com)\n by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.86_2) (envelope-from <massimiliano.pellizzer@canonical.com>)\n id 1uu55c-0001lf-Fl\n for kernel-team@lists.ubuntu.com; Thu, 04 Sep 2025 08:13:04 +0000",
            "from mail-ed1-f71.google.com (mail-ed1-f71.google.com\n [209.85.208.71])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 0AEAA3F717\n for <kernel-team@lists.ubuntu.com>; Thu,  4 Sep 2025 08:13:03 +0000 (UTC)",
            "by mail-ed1-f71.google.com with SMTP id\n 4fb4d7f45d1cf-61e8fcee4d5so1388294a12.2\n for <kernel-team@lists.ubuntu.com>; Thu, 04 Sep 2025 01:13:03 -0700 (PDT)",
            "from framework-canonical.lan\n (net-31-156-181-205.cust.vodafonedsl.it. [31.156.181.205])\n by smtp.gmail.com with ESMTPSA id\n a640c23a62f3a-b041565ca98sm1131743766b.86.2025.09.04.01.13.00\n for <kernel-team@lists.ubuntu.com>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 04 Sep 2025 01:13:00 -0700 (PDT)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1756973582; x=1757578382;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=511ni44lvUBmzet6xmpU1zvUTihf1UDHmUuQ6Qz6c1U=;\n b=HmdbV7Bf7viLmtMjcmriHpW8zHe55z84kaTXopd9ecaiTbKvISfKMe9SFwQXwIYjks\n R65wZswoKB9MtqxX0VAQ9TujbH9xd/LXmw4wvLlOraawCS9yTp6Dy+9RWJyRZpmuN4OU\n rKZUCzU7+nyp+5UX50dV10V+ZjaQDAanqCE7FxdlhhKWOcHXpeIRqcSZIambb9jO4ZLS\n rJaT3t1Fq/uByrRs8gyDOVwy0coPofHietzqjNlvW9dh0wYzPssNmVhvtUZngjtOWA+M\n M1QT/kVMRuYmko4RXwgj0uPBEWDpDv4RmblKq7w3carYjBqnfoyulcIJkA/6ZZibFDLo\n Yq0Q==",
        "X-Gm-Message-State": "AOJu0YxzpCpcukX3+vYqnr97HsTVxerK/dZNyZx5w37h+jgc8wOqdsKI\n mLSYn8rZawq9YQ5TXfXu9I3FZYv/SVNEoHkv/tsnK+19ELQU61ZZMch8s5Ao/f+/8rIh2XEDQw4\n Ij6D2xX2blKGQyjMpLvp+ungphxOKMjjnrIxjfEdvri1QTW9ZVGPVvqSI8YfSlzoouO0PuxxR/0\n Qi5pG04ADZ+pC/xg==",
        "X-Gm-Gg": "ASbGncujCm5UD1HZkA/O+43VDreKYNleUj3kUXg6SreLSgf9nwlcx+XEu4NgyUMI/DF\n /VIjpmepqNOOze0FYJsEpND7A8vDx0+vVJFhd3OOPnxYrJaU6UU74MwTG88JTD35Y03jl/iOX3d\n 1bjgvVB8QsTr6ZrGYjz5KOpGt4pmToANYmgbFyD2Sk7P+UnpEMLeTlP0J38gCsuDk6Dpl+E4H49\n uLfIJjL6O5ZIbGFQnDCJMJ6gZB0clXE3AQxXFmsiahgRq24mM5W2kXsOcQGYkj+agTyi6fvyHn2\n 0WPth6QdvCo+awg32HdAkCQKGbn+cxrEKKqRBFtfudhl5D59gEf5z6X4WPu+dAr0CE4e6jEBV3C\n svEEsDX31i5UI1KX/DrFGhkeQz1kTkXfk9TWZ/FWd3OQm",
        "X-Received": [
            "by 2002:a17:907:c06:b0:b04:70f8:d454 with SMTP id\n a640c23a62f3a-b0470f8d5c9mr431479766b.51.1756973581595;\n Thu, 04 Sep 2025 01:13:01 -0700 (PDT)",
            "by 2002:a17:907:c06:b0:b04:70f8:d454 with SMTP id\n a640c23a62f3a-b0470f8d5c9mr431476566b.51.1756973581149;\n Thu, 04 Sep 2025 01:13:01 -0700 (PDT)"
        ],
        "X-Google-Smtp-Source": "\n AGHT+IFlxNFbirerL0ovAGSb9hN87tYuln5b+klXfIFuArSvkcnNx0T0m7JOlOh+sqXH2+moO8j/ag==",
        "From": "Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com>",
        "To": "kernel-team@lists.ubuntu.com",
        "Subject": "[SRU][J][PATCH 11/12] perf report: Fix PAI counter names for s390\n virtual machines",
        "Date": "Thu,  4 Sep 2025 10:11:36 +0200",
        "Message-ID": "\n <63a4496260add9c290d39b7eec36fc1caf5f9009.1756973061.git.massimiliano.pellizzer@canonical.com>",
        "X-Mailer": "git-send-email 2.48.1",
        "In-Reply-To": "<cover.1756973061.git.massimiliano.pellizzer@canonical.com>",
        "References": "\n <175697071248.21594.2440727989420834998@framework-canonical.public>\n <cover.1756973061.git.massimiliano.pellizzer@canonical.com>",
        "MIME-Version": "1.0",
        "X-BeenThere": "kernel-team@lists.ubuntu.com",
        "X-Mailman-Version": "2.1.20",
        "Precedence": "list",
        "List-Id": "Kernel team discussions <kernel-team.lists.ubuntu.com>",
        "List-Unsubscribe": "<https://lists.ubuntu.com/mailman/options/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe>",
        "List-Archive": "<https://lists.ubuntu.com/archives/kernel-team>",
        "List-Post": "<mailto:kernel-team@lists.ubuntu.com>",
        "List-Help": "<mailto:kernel-team-request@lists.ubuntu.com?subject=help>",
        "List-Subscribe": "<https://lists.ubuntu.com/mailman/listinfo/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "kernel-team-bounces@lists.ubuntu.com",
        "Sender": "\"kernel-team\" <kernel-team-bounces@lists.ubuntu.com>"
    },
    "content": "From: Thomas Richter <tmricht@linux.ibm.com>\n\nBugLink: https://bugs.launchpad.net/bugs/2103415\n\ns390 introduced the Processor Activity Instrumentation (PAI) counter\nfacility on LPAR and virtual machines z/VM for models 3931 and 3932.\n\nThese counters are stored as raw data in the perf.data file and are\ndisplayed with:\n\n # perf report -i /tmp//perfout-635468 -D | grep Counter\n\tCounter:007 <unknown> Value:0x00000000000186a0\n\tCounter:032 <unknown> Value:0x0000000000000001\n\tCounter:032 <unknown> Value:0x0000000000000001\n\tCounter:032 <unknown> Value:0x0000000000000001\n #\n\nHowever on z/VM virtual machines, the counter names are not retrieved\nfrom the PMU and are shown as '<unknown>'.  This is caused by the CPU\nstring saved in the mapfile.csv for this machine:\n\n   ^IBM.393[12].*3\\.7.[[:xdigit:]]+$,3,cf_z16,core\n\nThis string contains the CPU Measurement facility first and second\nversion number and authorization level (3\\.7.[[:xdigit:]]+).  These\nnumbers do not apply to the PAI counter facility.  In fact they can be\nomitted.\n\nShorten the CPU identification string for this machine to manufacturer\nand model. This is sufficient for all PMU devices.\n\nOutput after:\n\n # perf report -i /tmp//perfout-635468 -D | grep Counter\n\tCounter:007 km_aes_128 Value:0x00000000000186a0\n\tCounter:032 kma_gcm_aes_256 Value:0x0000000000000001\n\tCounter:032 kma_gcm_aes_256 Value:0x0000000000000001\n\tCounter:032 kma_gcm_aes_256 Value:0x0000000000000001\n #\n\nFixes: b539deafbadb2fc6 (\"perf report: Add s390 raw data interpretation for PAI counters\")\nReviewed-by: Ian Rogers <irogers@google.com>\nSigned-off-by: Thomas Richter <tmricht@linux.ibm.com>\nAcked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>\nCc: Heiko Carstens <hca@linux.ibm.com>\nCc: Namhyung Kim <namhyung@kernel.org>\nCc: Sven Schnelle <svens@linux.ibm.com>\nCc: Thomas Richter <tmricht@linux.ibm.com>\nCc: Vasily Gorbik <gor@linux.ibm.com>\nLink: https://lore.kernel.org/r/20240404064806.1362876-1-tmricht@linux.ibm.com\nSigned-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>\n(cherry picked from commit b74bc5a633a7d72f89141d481d835e73bda3c3ae)\nSigned-off-by: Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com>\n---\n tools/perf/pmu-events/arch/s390/mapfile.csv | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/tools/perf/pmu-events/arch/s390/mapfile.csv b/tools/perf/pmu-events/arch/s390/mapfile.csv\nindex a918e1af77a5..b22648d12751 100644\n--- a/tools/perf/pmu-events/arch/s390/mapfile.csv\n+++ b/tools/perf/pmu-events/arch/s390/mapfile.csv\n@@ -5,4 +5,4 @@ Family-model,Version,Filename,EventType\n ^IBM.296[45].*[13]\\.[1-5].[[:xdigit:]]+$,1,cf_z13,core\n ^IBM.390[67].*[13]\\.[1-5].[[:xdigit:]]+$,3,cf_z14,core\n ^IBM.856[12].*3\\.6.[[:xdigit:]]+$,3,cf_z15,core\n-^IBM.393[12].*3\\.7.[[:xdigit:]]+$,3,cf_z16,core\n+^IBM.393[12].*$,3,cf_z16,core\n",
    "prefixes": [
        "SRU",
        "J",
        "11/12"
    ]
}