lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 2 Apr 2020 11:03:47 +0800
From:   Leo Yan <leo.yan@...aro.org>
To:     Adrian Hunter <adrian.hunter@...el.com>
Cc:     Arnaldo Carvalho de Melo <acme@...nel.org>,
        Jiri Olsa <jolsa@...hat.com>, Andi Kleen <ak@...ux.intel.com>,
        linux-kernel@...r.kernel.org, Kim Phillips <kim.phillips@....com>
Subject: Re: [PATCH 04/16] perf arm-spe: Implement ->evsel_is_auxtrace()
 callback

On Wed, Apr 01, 2020 at 01:16:01PM +0300, Adrian Hunter wrote:
> Implement ->evsel_is_auxtrace() callback.
> 
> Signed-off-by: Adrian Hunter <adrian.hunter@...el.com>
> Cc: Kim Phillips <kim.phillips@....com>
> ---
>  tools/perf/util/arm-spe.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/tools/perf/util/arm-spe.c b/tools/perf/util/arm-spe.c
> index 53be12b23ff4..b30cc74d0fb4 100644
> --- a/tools/perf/util/arm-spe.c
> +++ b/tools/perf/util/arm-spe.c
> @@ -176,6 +176,15 @@ static void arm_spe_free(struct perf_session *session)
>  	free(spe);
>  }
>  
> +static bool arm_spe_evsel_is_auxtrace(struct perf_session *session,
> +				      struct evsel *evsel)
> +{
> +	struct arm_spe *spe = container_of(session->auxtrace, struct arm_spe,
> +					     auxtrace);
> +
> +	return evsel->core.attr.type == spe->pmu_type;
> +}
> +
>  static const char * const arm_spe_info_fmts[] = {
>  	[ARM_SPE_PMU_TYPE]		= "  PMU Type           %"PRId64"\n",
>  };
> @@ -218,6 +227,7 @@ int arm_spe_process_auxtrace_info(union perf_event *event,
>  	spe->auxtrace.flush_events = arm_spe_flush;
>  	spe->auxtrace.free_events = arm_spe_free_events;
>  	spe->auxtrace.free = arm_spe_free;
> +	spe->auxtrace.evsel_is_auxtrace = arm_spe_evsel_is_auxtrace;
>  	session->auxtrace = &spe->auxtrace;

Reviewed-by: Leo Yan <leo.yan@...aro.org>

>  	arm_spe_print_info(&auxtrace_info->priv[0]);
> -- 
> 2.17.1
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ