get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 675644,
    "url": "http://patchwork.ozlabs.org/api/patches/675644/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20160927141846.GA6589@krava/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<20160927141846.GA6589@krava>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20160927141846.GA6589@krava/",
    "date": "2016-09-27T14:18:46",
    "name": "[v21,00/20] perf, tools: Add support for PMU events in JSON format",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "0627a03105ba96e3edeb762ca4b75a53907a40ab",
    "submitter": {
        "id": 2492,
        "url": "http://patchwork.ozlabs.org/api/people/2492/?format=api",
        "name": "Jiri Olsa",
        "email": "jolsa@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20160927141846.GA6589@krava/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/675644/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/675644/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3sk2zH4WFkz9s1h\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 28 Sep 2016 00:19:55 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3sk2zH3lVSzDrZR\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 28 Sep 2016 00:19:55 +1000 (AEST)",
            "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3sk2y42fP0zDrVX\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 28 Sep 2016 00:18:52 +1000 (AEST)",
            "from int-mx14.intmail.prod.int.phx2.redhat.com\n\t(int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 3E41DC05A299;\n\tTue, 27 Sep 2016 14:18:50 +0000 (UTC)",
            "from krava (vpn1-4-112.ams2.redhat.com [10.36.4.112])\n\tby int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with\n\tSMTP id u8REIk32013384; Tue, 27 Sep 2016 10:18:47 -0400"
        ],
        "Date": "Tue, 27 Sep 2016 16:18:46 +0200",
        "From": "Jiri Olsa <jolsa@redhat.com>",
        "To": "Andi Kleen <andi@firstfloor.org>,\n\tArnaldo Carvalho de Melo <acme@kernel.org>",
        "Subject": "Re: [PATCH v21 00/20] perf, tools: Add support for PMU events in\n\tJSON format",
        "Message-ID": "<20160927141846.GA6589@krava>",
        "References": "<20160919212017.GA11991@kernel.org>\n\t<20160919233113.GB11991@kernel.org>\n\t<20160919233753.GC11991@kernel.org>\n\t<20160920000258.GD11991@kernel.org>\n\t<20160920002820.GE11991@kernel.org> <20160922150022.GA20134@krava>\n\t<20160922162713.GA31617@krava> <20160926083533.GA15523@krava>\n\t<20160926150343.GJ5588@kernel.org>\n\t<20160926165954.GD5871@two.firstfloor.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=us-ascii",
        "Content-Disposition": "inline",
        "In-Reply-To": "<20160926165954.GD5871@two.firstfloor.org>",
        "User-Agent": "Mutt/1.7.0 (2016-08-17)",
        "X-Scanned-By": "MIMEDefang 2.68 on 10.5.11.27",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.32]); Tue, 27 Sep 2016 14:18:50 +0000 (UTC)",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "maddy@linux.vnet.ibm.com, peterz@infradead.org,\n\tArnaldo Carvalho de Melo <arnaldo.melo@gmail.com>,\n\tlinux-kernel@vger.kernel.org,\n\tSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>, \n\tlinuxppc-dev@lists.ozlabs.org",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"
    },
    "content": "On Mon, Sep 26, 2016 at 09:59:54AM -0700, Andi Kleen wrote:\n> On Mon, Sep 26, 2016 at 12:03:43PM -0300, Arnaldo Carvalho de Melo wrote:\n> > Em Mon, Sep 26, 2016 at 10:35:33AM +0200, Jiri Olsa escreveu:\n> > > ping.. is that working for you? IMO we can include this\n> > > as additional patch to the set..\n> > \n> > No, it doesn't fails to build on the first cross env I tried, fixing it\n> > now, resulting patch:\n> \n> Yes it shouldn't be difficult to fix cross building. I don't think\n> there are any fundamental problems.\n\nright, how about attached patch\n\nArnaldo,\ncould you please try it on cross build.. I still dont have setup for that :-\\\n\nthanks,\njirka\n\n\n---",
    "diff": "diff --git a/tools/build/Build b/tools/build/Build\nindex 63a6c34c0c88..76d1a4960973 100644\n--- a/tools/build/Build\n+++ b/tools/build/Build\n@@ -1 +1,3 @@\n+hostprogs := fixdep\n+\n fixdep-y := fixdep.o\ndiff --git a/tools/build/Makefile b/tools/build/Makefile\nindex 0d5a0e3a8fa9..653faee2a055 100644\n--- a/tools/build/Makefile\n+++ b/tools/build/Makefile\n@@ -14,6 +14,12 @@ endef\n $(call allow-override,CC,$(CROSS_COMPILE)gcc)\n $(call allow-override,LD,$(CROSS_COMPILE)ld)\n \n+HOSTCC ?= gcc\n+HOSTLD ?= ld\n+HOSTAR ?= ar\n+\n+export HOSTCC HOSTLD HOSTAR\n+\n ifeq ($(V),1)\n   Q =\n else\ndiff --git a/tools/build/Makefile.build b/tools/build/Makefile.build\nindex 27f3583193e6..031c5631cc21 100644\n--- a/tools/build/Makefile.build\n+++ b/tools/build/Makefile.build\n@@ -58,6 +58,9 @@ quiet_cmd_mkdir = MKDIR    $(dir $@)\n quiet_cmd_cc_o_c = CC       $@\n       cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<\n \n+quiet_cmd_host_cc_o_c = HOSTCC   $@\n+      cmd_host_cc_o_c = $(HOSTCC) $(c_flags) -c -o $@ $<\n+\n quiet_cmd_cpp_i_c = CPP      $@\n       cmd_cpp_i_c = $(CC) $(c_flags) -E -o $@ $<\n \n@@ -70,16 +73,24 @@ quiet_cmd_gen = GEN      $@\n # If there's nothing to link, create empty $@ object.\n quiet_cmd_ld_multi = LD       $@\n       cmd_ld_multi = $(if $(strip $(obj-y)),\\\n-\t\t       $(LD) -r -o $@  $(filter $(obj-y),$^),rm -f $@; $(AR) rcs $@)\n+                     $(LD) -r -o $@  $(filter $(obj-y),$^),rm -f $@; $(AR) rcs $@)\n+\n+quiet_cmd_host_ld_multi = HOSTLD   $@\n+      cmd_host_ld_multi = $(if $(strip $(obj-y)),\\\n+                          $(HOSTLD) -r -o $@  $(filter $(obj-y),$^),rm -f $@; $(HOSTAR) rcs $@)\n+\n+ifneq ($(filter $(obj),$(hostprogs)),)\n+  host = host_\n+endif\n \n # Build rules\n $(OUTPUT)%.o: %.c FORCE\n \t$(call rule_mkdir)\n-\t$(call if_changed_dep,cc_o_c)\n+\t$(call if_changed_dep,$(host)cc_o_c)\n \n $(OUTPUT)%.o: %.S FORCE\n \t$(call rule_mkdir)\n-\t$(call if_changed_dep,cc_o_c)\n+\t$(call if_changed_dep,$(host)cc_o_c)\n \n $(OUTPUT)%.i: %.c FORCE\n \t$(call rule_mkdir)\n@@ -119,7 +130,7 @@ $(sort $(subdir-obj-y)): $(subdir-y) ;\n \n $(in-target): $(obj-y) FORCE\n \t$(call rule_mkdir)\n-\t$(call if_changed,ld_multi)\n+\t$(call if_changed,$(host)ld_multi)\n \n __build: $(in-target)\n \t@:\ndiff --git a/tools/build/Makefile.include b/tools/build/Makefile.include\nindex be630bed66d2..ad22e4e7bc59 100644\n--- a/tools/build/Makefile.include\n+++ b/tools/build/Makefile.include\n@@ -1,10 +1,6 @@\n build := -f $(srctree)/tools/build/Makefile.build dir=. obj\n \n-ifdef CROSS_COMPILE\n-fixdep:\n-else\n fixdep:\n \t$(Q)$(MAKE) -C $(srctree)/tools/build CFLAGS= LDFLAGS= $(OUTPUT)fixdep\n-endif\n \n .PHONY: fixdep\ndiff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf\nindex 0abebcba849f..1347b5de3669 100644\n--- a/tools/perf/Makefile.perf\n+++ b/tools/perf/Makefile.perf\n@@ -144,6 +144,10 @@ $(call allow-override,LD,$(CROSS_COMPILE)ld)\n \n LD += $(EXTRA_LDFLAGS)\n \n+HOSTCC  ?= gcc\n+HOSTLD  ?= ld\n+HOSTAR  ?= ar\n+\n PKG_CONFIG = $(CROSS_COMPILE)pkg-config\n \n RM      = rm -f\n@@ -345,6 +349,7 @@ strip: $(PROGRAMS) $(OUTPUT)perf\n PERF_IN := $(OUTPUT)perf-in.o\n \n export srctree OUTPUT RM CC LD AR CFLAGS V BISON FLEX AWK\n+export HOSTCC HOSTLD HOSTAR\n include $(srctree)/tools/build/Makefile.include\n \n JEVENTS       := $(OUTPUT)pmu-events/jevents\ndiff --git a/tools/perf/pmu-events/Build b/tools/perf/pmu-events/Build\nindex d2f34307ae79..9213a1273697 100644\n--- a/tools/perf/pmu-events/Build\n+++ b/tools/perf/pmu-events/Build\n@@ -1,3 +1,5 @@\n+hostprogs := jevents\n+\n jevents-y\t+= json.o jsmn.o jevents.o\n pmu-events-y\t+= pmu-events.o\n JDIR\t\t=  pmu-events/arch/$(ARCH)\n",
    "prefixes": [
        "v21",
        "00/20"
    ]
}