Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1247798

Re: [PATCH v5 2/2] arm: perf: Add event descriptions

From Will Deacon <will.deacon@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v5 2/2] arm: perf: Add event descriptions
Date 2015-10-15 15:30 +0200
Message-ID <qjQLx-7Gi-35@gated-at.bofh.it> (permalink)
References (1 earlier) <qhCWn-7Ag-19@gated-at.bofh.it> <qhJbs-7Z4-29@gated-at.bofh.it> <qiMqD-1Ld-59@gated-at.bofh.it> <qiPRv-6RC-7@gated-at.bofh.it> <qj9Qd-2jW-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Oct 13, 2015 at 08:36:45AM -0700, Drew Richardson wrote:
> Add additional information about the ARM architected hardware events
> to make counters self describing. This makes the hardware PMUs easier
> to use as perf list contains possible events instead of users having
> to refer to documentation like the ARM TRMs.
> 
> Signed-off-by: Drew Richardson <drew.richardson@arm.com>
> ---
>  arch/arm/kernel/perf_event_v7.c | 121 ++++++++++++++++++++++++++++++++++++++++
>  drivers/perf/arm_pmu.c          |   1 +
>  2 files changed, 122 insertions(+)

[...]

> diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c
> index 2365a32a595e..e933d2dd71c0 100644
> --- a/drivers/perf/arm_pmu.c
> +++ b/drivers/perf/arm_pmu.c
> @@ -548,6 +548,7 @@ static void armpmu_init(struct arm_pmu *armpmu)
>  		.stop		= armpmu_stop,
>  		.read		= armpmu_read,
>  		.filter_match	= armpmu_filter_match,
> +		.attr_groups	= armpmu->pmu.attr_groups,

I don't understand this hunk. What's it doing?

Will
--
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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCHv2] arm: perf: Add event descriptions Drew Richardson <drew.richardson@arm.com> - 2015-10-07 20:30 +0200
  Re: [PATCHv2] arm: perf: Add event descriptions Will Deacon <will.deacon@arm.com> - 2015-10-09 12:20 +0200
    Re: [PATCHv2] arm: perf: Add event descriptions Drew Richardson <drew.richardson@arm.com> - 2015-10-09 19:00 +0200
      Re: [PATCHv2] arm: perf: Add event descriptions Will Deacon <will.deacon@arm.com> - 2015-10-12 16:40 +0200
        Re: [PATCHv2] arm: perf: Add event descriptions Drew Richardson <drew.richardson@arm.com> - 2015-10-12 20:20 +0200
          Re: [PATCHv2] arm: perf: Add event descriptions Will Deacon <will.deacon@arm.com> - 2015-10-13 16:20 +0200
          Re: [PATCH v5 2/2] arm: perf: Add event descriptions Drew Richardson <drew.richardson@arm.com> - 2015-10-13 17:40 +0200
            Re: [PATCH v5 2/2] arm: perf: Add event descriptions Will Deacon <will.deacon@arm.com> - 2015-10-15 15:30 +0200
              Re: [PATCH v5 2/2] arm: perf: Add event descriptions Drew Richardson <drew.richardson@arm.com> - 2015-10-15 17:20 +0200
                Re: [PATCH v5 2/2] arm: perf: Add event descriptions Will Deacon <will.deacon@arm.com> - 2015-10-15 17:30 +0200
                Re: [PATCH v5 2/2] arm: perf: Add event descriptions Mark Rutland <mark.rutland@arm.com> - 2015-10-15 17:50 +0200
                Re: [PATCH v5 2/2] arm: perf: Add event descriptions Drew Richardson <drew.richardson@arm.com> - 2015-10-15 18:40 +0200
                Re: [PATCH v5 2/2] arm: perf: Add event descriptions Mark Rutland <mark.rutland@arm.com> - 2015-10-15 18:50 +0200
                Re: [PATCH v5 2/2] arm: perf: Add event descriptions Pawel Moll <pawel.moll@arm.com> - 2015-10-15 17:30 +0200
                Re: [PATCH v5 2/2] arm: perf: Add event descriptions Pawel Moll <pawel.moll@arm.com> - 2015-10-15 17:50 +0200
                Re: [PATCH v5 2/2] arm: perf: Add event descriptions Mark Rutland <mark.rutland@arm.com> - 2015-10-15 17:50 +0200
          Re: [PATCH v5 0/2] arm: perf: Add event descriptions Drew Richardson <drew.richardson@arm.com> - 2015-10-13 17:40 +0200
          Re: [PATCH v5 1/2] arm: perf: Convert event enums to #defines Drew Richardson <drew.richardson@arm.com> - 2015-10-13 17:40 +0200

csiph-web