mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
perf probe: Fix to copy the type for raw parameters
Copy type field if it is for raw parameters. Without this fix, perf probe drops the type if user passes it for raw parameters (e.g. %ax:u32 will be converted to %ax). Cc: Peter Zijlstra <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Frederic Weisbecker <[email protected]> Signed-off-by: Masami Hiramatsu <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
e66b688c64
commit
58432e1f36
1 changed files with 6 additions and 2 deletions
|
|
@ -705,8 +705,12 @@ static int find_variable(Dwarf_Die *sp_die, struct probe_finder *pf)
|
|||
pf->tvar->value = strdup(pf->pvar->var);
|
||||
if (pf->tvar->value == NULL)
|
||||
return -ENOMEM;
|
||||
else
|
||||
return 0;
|
||||
if (pf->pvar->type) {
|
||||
pf->tvar->type = strdup(pf->pvar->type);
|
||||
if (pf->tvar->type == NULL)
|
||||
return -ENOMEM;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
pr_debug("Searching '%s' variable in context.\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue