Bug 194291 - tools/perf/util/bpf-prologue.c gen_prologue_fastpath structure args.value is the only arguments used.
Summary: tools/perf/util/bpf-prologue.c gen_prologue_fastpath structure args.value is ...
Status: NEW
Alias: None
Product: Tools
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Tools.Other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-07 05:56 UTC by Michael
Modified: 2017-02-07 05:56 UTC (History)
0 users

See Also:
Kernel Version: 4.10
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Michael 2017-02-07 05:56:34 UTC
in gen_prologue_fastpath:
	
	for (i = 0; i < nargs; i++) {
    --->        err = gen_ldx_reg_from_ctx(pos, BPF_REG_1, args[i].value,

	The struct probe_trace_arg *args contains multiple values, but only the .value field is used.  If that's the only field in *args necessary for this function, is there a better way to pass the values?

Found using static analysis tools.

Note You need to log in before you can comment on or make changes to this bug.