Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1235531
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS |
| Date | 2015-09-29 22:40 +0200 |
| Message-ID | <qe9QS-oL-19@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <qdY94-Eb-19@gated-at.bofh.it> <qe0DU-44m-9@gated-at.bofh.it> <qe66D-3vi-23@gated-at.bofh.it> <qe6Jl-4tk-17@gated-at.bofh.it> <qe9nR-8iC-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Sep 29, 2015 at 11:10:02AM -0700, Sukadev Bhattiprolu wrote:
SNIP
>
> diff --git a/tools/perf/util/perf_regs.c b/tools/perf/util/perf_regs.c
> index 885e8ac..6b8eb13 100644
> --- a/tools/perf/util/perf_regs.c
> +++ b/tools/perf/util/perf_regs.c
> @@ -6,6 +6,7 @@ const struct sample_reg __weak sample_reg_masks[] = {
> SMPL_REG_END
> };
>
> +#ifdef HAVE_PERF_REGS_SUPPORT
> int perf_reg_value(u64 *valp, struct regs_dump *regs, int id)
> {
> int i, idx = 0;
> @@ -29,3 +30,4 @@ out:
> *valp = regs->cache_regs[id];
> return 0;
> }
> +#endif
> diff --git a/tools/perf/util/perf_regs.h b/tools/perf/util/perf_regs.h
> index 2984dcc..8dbdfeb 100644
> --- a/tools/perf/util/perf_regs.h
> +++ b/tools/perf/util/perf_regs.h
> @@ -3,6 +3,10 @@
>
> #include <linux/types.h>
>
> +#ifndef __maybe_unused
> +#define __maybe_unused __attribute__((unused))
> +#endif
> +
would the linux/compiler.h include do instead?
otherwise I'd be ok with this
thanks,
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2015-09-24 14:20 +0200
Re: [PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS Jiri Olsa <jolsa@redhat.com> - 2015-09-24 15:00 +0200
Re: [PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS Stephane Eranian <eranian@google.com> - 2015-09-24 17:40 +0200
Re: [PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS Jiri Olsa <jolsa@redhat.com> - 2015-09-24 18:10 +0200
Re: [PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2015-09-24 19:40 +0200
Re: [PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2015-09-29 07:40 +0200
Re: [PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS Jiri Olsa <jolsa@redhat.com> - 2015-09-29 09:00 +0200
Re: [PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2015-09-29 10:10 +0200
Re: [PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS Jiri Olsa <jolsa@redhat.com> - 2015-09-29 12:50 +0200
Re: [PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2015-09-29 18:40 +0200
Re: [PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS Jiri Olsa <jolsa@redhat.com> - 2015-09-29 19:20 +0200
Re: [PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-09-29 22:10 +0200
Re: [PATCH] perf record: Limit --intr-regs to platforms supporting PERF_REGS Jiri Olsa <jolsa@redhat.com> - 2015-09-29 22:40 +0200
csiph-web