mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 23:46:14 +01:00
perf trace-event: Constify print arguments
Capture that these functions don't mutate their input. Reviewed-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Cc: Ben Gainey <ben.gainey@arm.com> Cc: Colin Ian King <colin.i.king@gmail.com> Cc: Dominique Martinet <asmadeus@codewreck.org> Cc: Ilkka Koskinen <ilkka@os.amperecomputing.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@linaro.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Oliver Upton <oliver.upton@linux.dev> Cc: Paran Lee <p4ranlee@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steinar H. Gunderson <sesse@google.com> Cc: Steven Rostedt (VMware) <rostedt@goodmis.org> Cc: Thomas Falcon <thomas.falcon@intel.com> Cc: Weilin Wang <weilin.wang@intel.com> Cc: Yang Jihong <yangjihong@bytedance.com> Cc: Yang Li <yang.lee@linux.alibaba.com> Cc: Ze Gao <zegao2021@gmail.com> Cc: Zixian Cai <fzczx123@gmail.com> Cc: zhaimingbing <zhaimingbing@cmss.chinamobile.com> Link: https://lore.kernel.org/r/20241118225345.889810-4-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
05be17eed7
commit
f7264150b4
2 changed files with 2 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ unsigned long long read_size(struct tep_event *event, void *ptr, int size)
|
|||
return tep_read_number(event->tep, ptr, size);
|
||||
}
|
||||
|
||||
void event_format__fprintf(struct tep_event *event,
|
||||
void event_format__fprintf(const struct tep_event *event,
|
||||
int cpu, void *data, int size, FILE *fp)
|
||||
{
|
||||
struct tep_record record;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ trace_event__tp_format(const char *sys, const char *name);
|
|||
|
||||
struct tep_event *trace_event__tp_format_id(int id);
|
||||
|
||||
void event_format__fprintf(struct tep_event *event,
|
||||
void event_format__fprintf(const struct tep_event *event,
|
||||
int cpu, void *data, int size, FILE *fp);
|
||||
|
||||
int parse_ftrace_file(struct tep_handle *pevent, char *buf, unsigned long size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue