Bug 194291

Summary: tools/perf/util/bpf-prologue.c gen_prologue_fastpath structure args.value is the only arguments used.
Product: Tools Reporter: Michael (michael_allen_bond)
Component: OtherAssignee: Tools.Other (tools_other)
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.10 Subsystem:
Regression: No Bisected commit-id:

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.