mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: James Clark <james.clark@linaro.org>
To: Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>,
	Arnaldo Carvalho de Melo <acme@kernel.org>,
	Namhyung Kim <namhyung@kernel.org>
Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org,
	coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org,
	Mark Rutland <mark.rutland@arm.com>,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>,
	Adrian Hunter <adrian.hunter@intel.com>,
	Mike Leach <mike.leach@arm.com>, Leo Yan <leo.yan@arm.com>,
	Suzuki K Poulose <suzuki.poulose@arm.com>
Subject: Re: [PATCH 1/2] perf/core: Return errors from perf_report_aux_output_id()
Date: Wed, 28 Oct 2026 09:38:28 +0000	[thread overview]
Message-ID: <97df111f-edf4-4ce6-8ccd-9cccc730006c@linaro.org> (raw)
In-Reply-To: <254599ef-ace5-423b-bc31-56150909d96f@arm.com>



On 05/10/2026 16:46, Suzuki K Poulose wrote:
> Hi Peter, Arnaldo, Mark, Ingo et al
> 
> 
> 
> On 01/10/2026 15:21, James Clark wrote:
>> It's useful to know if this failed or not so a retry can be attempted
>> later. Return the error code or success.
>>
>> Signed-off-by: James Clark <james.clark@linaro.org>
>> ---
>>   include/linux/perf_event.h | 2 +-
>>   kernel/events/core.c       | 6 ++++--
>>   2 files changed, 5 insertions(+), 3 deletions(-)
>>
>> diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
>> index 48d851fbd8ea..01d318a4de50 100644
>> --- a/include/linux/perf_event.h
>> +++ b/include/linux/perf_event.h
>> @@ -1896,7 +1896,7 @@ static inline struct fasync_struct 
>> **perf_event_fasync(struct perf_event *event)
>>   }
>>   extern void perf_event_addr_filters_sync(struct perf_event *event);
>> -extern void perf_report_aux_output_id(struct perf_event *event, u64 
>> hw_id);
>> +extern int perf_report_aux_output_id(struct perf_event *event, u64 
>> hw_id);
> 
> This looks a trivial change with minor impact. Are you happy for me to
> pull this via the coresight tree ? Please could I have an Ack on this ?
> 
> 
> Cheers
> Suzuki

Gentle ping, thanks.

>>   extern int perf_output_begin(struct perf_output_handle *handle,
>>                    struct perf_sample_data *data,
>> diff --git a/kernel/events/core.c b/kernel/events/core.c
>> index d7f3e2c2ecb1..232da3b6f393 100644
>> --- a/kernel/events/core.c
>> +++ b/kernel/events/core.c
>> @@ -10563,7 +10563,7 @@ static void perf_log_itrace_start(struct 
>> perf_event *event)
>>       perf_output_end(&handle);
>>   }
>> -void perf_report_aux_output_id(struct perf_event *event, u64 hw_id)
>> +int perf_report_aux_output_id(struct perf_event *event, u64 hw_id)
>>   {
>>       struct perf_output_handle handle;
>>       struct perf_sample_data sample;
>> @@ -10585,12 +10585,14 @@ void perf_report_aux_output_id(struct 
>> perf_event *event, u64 hw_id)
>>       ret = perf_output_begin(&handle, &sample, event, rec.header.size);
>>       if (ret)
>> -        return;
>> +        return ret;
>>       perf_output_put(&handle, rec);
>>       perf_event__output_id_sample(event, &handle, &sample);
>>       perf_output_end(&handle);
>> +
>> +    return 0;
>>   }
>>   EXPORT_SYMBOL_GPL(perf_report_aux_output_id);
>>
> 


  reply	other threads:[~2026-10-28  9:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-01 14:21 [PATCH 0/2] coresight: Retry failed HW_ID writes James Clark
2026-10-01 14:21 ` [PATCH 1/2] perf/core: Return errors from perf_report_aux_output_id() James Clark
2026-10-05 15:46   ` Suzuki K Poulose
2026-10-28  9:38     ` James Clark [this message]
2026-10-01 14:21 ` [PATCH 2/2] coresight: Retry failed HW_ID writes James Clark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=97df111f-edf4-4ce6-8ccd-9cccc730006c@linaro.org \
    --to=james.clark@linaro.org \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=coresight@lists.linaro.org \
    --cc=irogers@google.com \
    --cc=jolsa@kernel.org \
    --cc=leo.yan@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mike.leach@arm.com \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.org \
    --cc=suzuki.poulose@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®