• Arnaldo Carvalho de Melo's avatar
    perf hists: Save the callchain_size in struct hist_entry · 41477acf
    Arnaldo Carvalho de Melo authored
    So that we can figure out the real size of the struct and also be able
    to tell if callchains may be present in this histogram entry.
    
    Since we can't always guarantee that from hist_entry->hists we can use
    hists_to_evsel, to then look at evsel->attr.sample_type for
    PERF_SAMPLE_CALLCHAIN, like with the 'perf c2c' tool, that uses plain
    'struct hists' instances, we need another way of deciding if a specific
    hist_entry instance has callchains associated with it, i.e. if its
    hist_entry->callchain[0] has space allocated for.
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Jin Yao <yao.jin@linux.intel.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Wang Nan <wangnan0@huawei.com>
    Link: https://lkml.kernel.org/n/tip-ptvndealxs1k7myluvu9flnq@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    41477acf
sort.h 6.79 KB