• Namhyung Kim's avatar
    perf annotate-data: Maintain variable type info · 06b2ce75
    Namhyung Kim authored
    As it collected basic block and variable information in each scope, it
    now can build a state table to find matching variable at the location.
    
    The struct type_state is to keep the type info saved in each register
    and stack slot.  The update_var_state() updates the table when it finds
    variables in the current address.  It expects die_collect_vars() filled
    a list of variables with type info and starting address.
    Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Masami Hiramatsu <mhiramat@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Link: https://lore.kernel.org/r/20240319055115.4063940-10-namhyung@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    06b2ce75
annotate-data.c 18.6 KB