From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.71 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796167313; b=fFrUX0A+5V7SELerUFZwTfEKQwgyITFkAOLYNqY1jWcfbr1SB1+L/ym7BgTNnAvpKQMW +ASjjstcpiCPWcs4WlKk/2YIcf/x5S3kOPSkrZgStRVEtle3iHvzCgDg/OOdIqVOcIr2e O2UsoEFXj2k6lCwCuUv2luncwCko7Jlci+lFg+wRWaEksDZEQ7+eAp69SwL5VUIrT4AtH 4+ueaEi72+Z1kghMV9S8X3gfJDsDJxCX0YxPdniqlzmqlM5XNQGsVoVu4hW97nI923wVf 5bRXfPj9CvYoZs+mcHn18fhoT5oUCV4S6PDbCpLArMhq3Qvd/3vZX4/AwX0MhyyqoCg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796167313; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=FZ1z+pro7WH9HKl8jBkXVDEtv2Axi3Dp6sMy2v22Plc=; b=k1VUuXRR+hgHuo7GuQxfqAPiZQcuF/TeqSv2Lfc2EyYKafVWzxHpdCuX8vigBwOVod2R erv5fyZmwyEAyW1KfrNfyb2uBtTNEDxcNIP8kK1bUaenX10r71QJYFEVl2EgnKfH+nRX4 GtOqvWQHJR7wXrC1eUmgBYNuOtIfTyJSRfmP8z32YZH7MfgWsWtv9wc5+NIgD7zWd+OHa G3Ic/RtO3p1nIdzT80XlBWeCm2iBpTdHLTL+2zWNLlVFoXkRwqIqt5Ife5nkv9E4mNScF kEfxTqqVzo+NYHl5Otldg63F2ikc/rooIlSkoMkp8/ShUjYPDLzI7kWjrhpo1QMK55g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=bi0+9FyL; arc=none smtp.remote-ip=74.125.82.71 Received: from mail-dl1-f71.google.com (mail-dl1-f71.google.com [74.125.82.71]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4A6F606A6B5 for ; Tue, 1 Dec 2026 23:21:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C4A6F606A6B5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=bi0+9FyL Received: by mail-dl1-f71.google.com with SMTP id a92af1059eb24-1b588e4bd7fso8086894c88.0 for ; Tue, 01 Dec 2026 15:21:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796167312; x=1796772112; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=FZ1z+pro7WH9HKl8jBkXVDEtv2Axi3Dp6sMy2v22Plc=; b=bi0+9FyLhtsaAOjn4CKNCQ8WdpShjekaf+pxJIKj1rvgq31mY5DaRO6wSPJA9td2xv JvLBbAXs8CZ7RMW1eX3EuaXufTfp5s+2bmNmOKnqFM/2zoA5WgXChLGlGWd6SjATH1ha /eu6oslZhX+mTCaPvwiZ4RhzNPjhKt7DSKHHrSiIJ62Agh8hB+tCDSHiaG/t8iXOgtZe AUq4NSL+eRmtw3zac88f3xhKAGbx/GXmREMvGKRTqAw4NcgmmcY7i9YXnupW8poFnMN+ FrwH16CtJpIFFalOeD4V4cfE2EZmtTizBT3//fWwJGkyuY9BUwBEgltN/hjYBLMN8zaN ttgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796167312; x=1796772112; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=FZ1z+pro7WH9HKl8jBkXVDEtv2Axi3Dp6sMy2v22Plc=; b=WQknblEt8BmPS/PuQfowxYxXktUbrvWkkFHesREram1QKEhfv81PZcjc1cPGiR3Yo5 BloLnvceAetVYgGXyF+BgqjWVjqveG5zomyNUM8UWyllwZ3XipF6PUiw9bzjjKHucwjg /C3+DkwU9njzZdmkgPfgo9ZdZqBfWWjT5bGy1YH5P2UzS6mjICkfr7N+34ohXxTnVsXP auCYTOL79ezA1WjkqWRdbfbnObB9BnUbMrdwZbrPXz0KNGBLuu/we8nQOf+5ZZ3RJyH8 K/X9vhfQbYLAJ19503fW7zP4S/aL6+qBFIZEz9D1SJGrHNjpEe8iyWvCIRR4dA8+jD0Y uvXw== X-Forwarded-Encrypted: i=1; AL+hErE34s+IrvUhvJZTT1SWfn+gvfdjLVmH46U7Nnj0KJ/QmwfCUUhizTv7ma1cI7uYNyACRLqaVju9+8TLbOI=@vger.kernel.org X-Gm-Message-State: APuU4Z/CP/rj0K0h/bXlIFmHFsC+Is2vCgmTUPXZGFsvarLwJx/79Nv/ d2U8HWAnEIVnQ9MSoJYr3pfUTk4zUWWRB56zLqQ1CzcXlDyKD/aoTErroNDWFlduJ5+o0T3f8UM 8rSTbFdzCxg== X-Received: from dycmv2.prod.google.com ([2002:a05:693c:2802:b0:386:b5d2:c426]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:f516:b0:1b5:4aba:b087 with SMTP id a92af1059eb24-1b5567c0c01mr32446634c88.3.1796167311704; Tue, 01 Dec 2026 15:21:51 -0800 (PST) Date: Tue, 1 Dec 2026 15:21:11 -0800 In-Reply-To: <20261201232116.1988791-1-irogers@google.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261201232116.1988791-1-irogers@google.com> X-Mailer: git-send-email 2.56.1.915.g69d5ec7298-goog Message-ID: <20261201232116.1988791-12-irogers@google.com> Subject: [RFC PATCH 11/16] perf report, script: Add host_ip, host_dso, and host_sym fields From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Sean Christopherson , Paolo Bonzini Cc: Marc Zyngier , Alexei Starovoitov , linux-perf-users@vger.kernel.org, kvm@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Ian Rogers Content-Type: text/plain; charset="UTF-8" Store the resolved host_map, host_sym, host_addr, and raw_host_ip on struct hist_entry and expose explicit host_ip, host_dso, and host_sym sort keys in perf report as well as host_ip, host_sym, and host_dso output fields in perf script. Signed-off-by: Ian Rogers --- tools/perf/Documentation/perf-report.txt | 3 + tools/perf/Documentation/perf-script.txt | 4 + tools/perf/builtin-script.c | 48 ++++++++++ tools/perf/util/hist.c | 48 ++++++++++ tools/perf/util/hist.h | 6 ++ tools/perf/util/sort.c | 114 +++++++++++++++++++++++ tools/perf/util/sort.h | 4 + 7 files changed, 227 insertions(+) diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt index e145124d6c9a..64466ccab9fd 100644 --- a/tools/perf/Documentation/perf-report.txt +++ b/tools/perf/Documentation/perf-report.txt @@ -156,6 +156,9 @@ OPTIONS - p_stage_cyc: On powerpc, this presents the number of cycles spent in a pipeline stage. And currently supported only on powerpc. - addr: (Full) virtual address of the sampled instruction + - host_ip: Host virtual address of the sampled instruction (recorded with --host-ip) + - host_dso: Host DSO mapped at host_ip + - host_sym / host_symbol: Host symbol resolved at host_ip - retire_lat: On X86, this reports pipeline stall of this instruction compared to the previous instruction in cycles. And currently supported only on X86 - simd: Flags describing a SIMD operation. The architecture type can be Arm's diff --git a/tools/perf/Documentation/perf-script.txt b/tools/perf/Documentation/perf-script.txt index f0228e784ced..ed66a6d23a68 100644 --- a/tools/perf/Documentation/perf-script.txt +++ b/tools/perf/Documentation/perf-script.txt @@ -169,6 +169,10 @@ OPTIONS The cgroup fields requires sample having the cgroup id which is saved when "--all-cgroups" option is passed to 'perf record'. + The host_ip, host_sym and host_dso fields display the host virtual IP + address, host symbol and host DSO resolved on the host machine when + recorded with 'perf record --host-ip'. + Finally, a user may not set fields to none for all event types. i.e., -F "" is not allowed. diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index b6691ebb1b4e..f1f0e388d713 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c @@ -147,6 +147,9 @@ enum perf_output_field { PERF_OUTPUT_DISASM = 1ULL << 42, PERF_OUTPUT_BRSTACKDISASM = 1ULL << 43, PERF_OUTPUT_BRCNTR = 1ULL << 44, + PERF_OUTPUT_HOST_IP = 1ULL << 45, + PERF_OUTPUT_HOST_SYM = 1ULL << 46, + PERF_OUTPUT_HOST_DSO = 1ULL << 47, }; struct perf_script { @@ -223,6 +226,9 @@ static struct output_option { {.str = "retire_lat", .field = PERF_OUTPUT_RETIRE_LAT}, {.str = "brstackdisasm", .field = PERF_OUTPUT_BRSTACKDISASM}, {.str = "brcntr", .field = PERF_OUTPUT_BRCNTR}, + {.str = "host_ip", .field = PERF_OUTPUT_HOST_IP}, + {.str = "host_sym", .field = PERF_OUTPUT_HOST_SYM}, + {.str = "host_dso", .field = PERF_OUTPUT_HOST_DSO}, }; enum { @@ -595,6 +601,18 @@ static int evsel__check_attr(struct evsel *evsel, struct perf_session *session) evsel__check_stype(evsel, PERF_SAMPLE_WEIGHT_STRUCT, "WEIGHT_STRUCT", PERF_OUTPUT_RETIRE_LAT)) return -EINVAL; + if (PRINT_FIELD(HOST_IP) && + evsel__check_stype(evsel, PERF_SAMPLE_HOST_IP, "HOST_IP", PERF_OUTPUT_HOST_IP)) + return -EINVAL; + + if (PRINT_FIELD(HOST_SYM) && + evsel__check_stype(evsel, PERF_SAMPLE_HOST_IP, "HOST_IP", PERF_OUTPUT_HOST_SYM)) + return -EINVAL; + + if (PRINT_FIELD(HOST_DSO) && + evsel__check_stype(evsel, PERF_SAMPLE_HOST_IP, "HOST_IP", PERF_OUTPUT_HOST_DSO)) + return -EINVAL; + return 0; } @@ -2745,6 +2763,36 @@ static void process_event(struct perf_script *script, symbol_conf.bt_stop_list, fp); } + if (PRINT_FIELD(HOST_IP) || PRINT_FIELD(HOST_SYM) || PRINT_FIELD(HOST_DSO)) { + struct perf_sample host_sample = *sample; + struct addr_location host_al; + unsigned int host_opts = 0; + + if (PRINT_FIELD(HOST_IP)) + host_opts |= EVSEL__PRINT_IP; + if (PRINT_FIELD(HOST_SYM)) + host_opts |= EVSEL__PRINT_SYM; + if (PRINT_FIELD(HOST_DSO)) + host_opts |= EVSEL__PRINT_DSO; + if (PRINT_FIELD(DSOFF)) + host_opts |= EVSEL__PRINT_DSOFF; + if (PRINT_FIELD(SYMOFFSET)) + host_opts |= EVSEL__PRINT_SYMOFFSET; + if (output[type].print_ip_opts & EVSEL__PRINT_UNKNOWN_AS_ADDR) + host_opts |= EVSEL__PRINT_UNKNOWN_AS_ADDR; + + host_sample.ip = sample->host_ip; + addr_location__init(&host_al); + host_al.map = map__get(al->host_map); + host_al.sym = al->host_sym; + host_al.addr = al->host_map ? al->host_addr : sample->host_ip; + + fputc(' ', fp); + sample__fprintf_sym(&host_sample, &host_al, 0, host_opts, + NULL, NULL, fp); + addr_location__exit(&host_al); + } + if (PRINT_FIELD(IREGS)) { perf_sample__fprintf_iregs(sample, attr, thread__e_machine(thread, machine, &e_flags), diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index 364754e9d12a..50ecb65a354a 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c @@ -119,6 +119,24 @@ void hists__calc_col_len(struct hists *hists, struct hist_entry *h) hists__new_col_len(hists, HISTC_DSO, len); } + if (h->host_ms.sym) { + symlen = h->host_ms.sym->namelen + 4; + if (verbose > 0) + symlen += BITS_PER_LONG / 4 + 2 + 3; + hists__new_col_len(hists, HISTC_HOST_SYMBOL, symlen); + } else { + symlen = unresolved_col_width + 4 + 2; + hists__new_col_len(hists, HISTC_HOST_SYMBOL, symlen); + hists__set_unres_dso_col_len(hists, HISTC_HOST_DSO); + } + + if (h->host_ms.map) { + len = dso__name_len(map__dso(h->host_ms.map)); + hists__new_col_len(hists, HISTC_HOST_DSO, len); + } + + hists__new_col_len(hists, HISTC_HOST_IP, BITS_PER_LONG / 4 + 2); + if (h->parent) hists__new_col_len(hists, HISTC_PARENT, h->parent->namelen); @@ -543,6 +561,8 @@ static int hist_entry__init(struct hist_entry *he, he->ms.thread = thread__get(he->ms.thread); he->ms.map = map__get(he->ms.map); + he->host_ms.thread = thread__get(he->host_ms.thread); + he->host_ms.map = map__get(he->host_ms.map); if (he->branch_info) { /* @@ -616,6 +636,7 @@ static int hist_entry__init(struct hist_entry *he, if (he->mem_info) mem_info__zput(he->mem_info); err: + map_symbol__exit(&he->host_ms); map_symbol__exit(&he->ms); zfree(&he->stat_acc); return -ENOMEM; @@ -734,6 +755,20 @@ static struct hist_entry *hists__findnew_entry(struct hists *hists, map__put(he->ms.map); he->ms.map = map__get(entry->ms.map); } + if (hists__has(hists, host_sym) && + entry->host_ms.map && + he->host_ms.map != entry->host_ms.map) { + if (he->host_ms.sym) { + u64 addr = he->host_ms.sym->start; + + he->host_ms.sym = + map__find_symbol(entry->host_ms.map, addr); + } + + map__put(he->host_ms.map); + he->host_ms.map = map__get(entry->host_ms.map); + he->host_ip = entry->host_ip; + } goto out; } @@ -819,11 +854,17 @@ __hists__add_entry(struct hists *hists, .map = al->map, .sym = al->sym, }, + .host_ms = { + .thread = al->thread, + .map = al->host_map, + .sym = al->host_sym, + }, .srcline = (char *) al->srcline, .socket = al->socket, .cpu = al->cpu, .cpumode = al->cpumode, .ip = al->addr, + .host_ip = al->host_map ? al->host_addr : al->raw_host_ip, .level = al->level, .code_page_size = sample->code_page_size, .parallelism = al->parallelism, @@ -1236,11 +1277,17 @@ iter_add_next_cumulative_entry(struct hist_entry_iter *iter, .thread = al->thread, .comm = thread__comm(al->thread), .ip = al->addr, + .host_ip = al->host_map ? al->host_addr : al->raw_host_ip, .ms = { .thread = al->thread, .map = al->map, .sym = al->sym, }, + .host_ms = { + .thread = al->thread, + .map = al->host_map, + .sym = al->host_sym, + }, .srcline = (char *) al->srcline, .parent = iter->parent, .raw_data = sample->raw_data, @@ -1467,6 +1514,7 @@ void hist_entry__delete(struct hist_entry *he) } thread__zput(he->thread); + map_symbol__exit(&he->host_ms); map_symbol__exit(&he->ms); if (he->branch_info) { diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 0d08011aebce..263b349b9597 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h @@ -97,6 +97,9 @@ enum hist_column { HISTC_CALLCHAIN_BRANCH_PREDICTED, HISTC_CALLCHAIN_BRANCH_ABORT, HISTC_CALLCHAIN_BRANCH_CYCLES, + HISTC_HOST_IP, + HISTC_HOST_DSO, + HISTC_HOST_SYMBOL, HISTC_NR_COLS, /* Last entry */ }; @@ -247,11 +250,13 @@ struct hist_entry { struct he_stat *stat_acc; struct he_mem_stat *mem_stat; struct map_symbol ms; + struct map_symbol host_ms; struct thread *thread; struct comm *comm; struct namespace_id cgroup_id; u64 cgroup; u64 ip; + u64 host_ip; u64 transaction; u64 code_page_size; u64 weight; @@ -532,6 +537,7 @@ struct perf_hpp_list { int need_collapse; int parent; int sym; + int host_sym; int dso; int socket; int thread; diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 58638ec9ae0e..229b836479c4 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c @@ -2476,6 +2476,111 @@ static struct sort_entry sort_addr = { .se_width_idx = HISTC_ADDR, }; +/* --sort host_ip */ + +static int64_t +sort__host_ip_cmp(struct hist_entry *left, struct hist_entry *right) +{ + u64 left_ip = left->host_ip; + u64 right_ip = right->host_ip; + struct map *left_map = left->host_ms.map; + struct map *right_map = right->host_ms.map; + + if (left_map) + left_ip = map__unmap_ip(left_map, left_ip); + if (right_map) + right_ip = map__unmap_ip(right_map, right_ip); + + return _sort__addr_cmp(left_ip, right_ip); +} + +static int hist_entry__host_ip_snprintf(struct hist_entry *he, char *bf, + size_t size, unsigned int width) +{ + u64 ip = he->host_ip; + struct map *map = he->host_ms.map; + + if (map) + ip = map__unmap_ip(map, ip); + + return repsep_snprintf(bf, size, "%-#*llx", width, ip); +} + +static struct sort_entry sort_host_ip = { + .se_header = "Host IP", + .se_cmp = sort__host_ip_cmp, + .se_snprintf = hist_entry__host_ip_snprintf, + .se_width_idx = HISTC_HOST_IP, +}; + +/* --sort host_dso */ + +static int64_t +sort__host_dso_cmp(struct hist_entry *left, struct hist_entry *right) +{ + return _sort__dso_cmp(right->host_ms.map, left->host_ms.map); +} + +static int hist_entry__host_dso_snprintf(struct hist_entry *he, char *bf, + size_t size, unsigned int width) +{ + return _hist_entry__dso_snprintf(he->host_ms.map, bf, size, width); +} + +static struct sort_entry sort_host_dso = { + .se_header = "Host Shared Object", + .se_cmp = sort__host_dso_cmp, + .se_snprintf = hist_entry__host_dso_snprintf, + .se_width_idx = HISTC_HOST_DSO, +}; + +/* --sort host_sym */ + +static int64_t +sort__host_sym_cmp(struct hist_entry *left, struct hist_entry *right) +{ + int64_t ret; + + if (!left->host_ms.sym && !right->host_ms.sym) + return sort__host_ip_cmp(left, right); + + ret = sort__host_dso_cmp(left, right); + if (ret != 0) + return ret; + + return _sort__sym_cmp(left->host_ms.sym, right->host_ms.sym); +} + +static int64_t +sort__host_sym_sort(struct hist_entry *left, struct hist_entry *right) +{ + if (!left->host_ms.sym || !right->host_ms.sym) + return cmp_null(left->host_ms.sym, right->host_ms.sym); + + return strcmp(right->host_ms.sym->name, left->host_ms.sym->name); +} + +static int hist_entry__host_sym_snprintf(struct hist_entry *he, char *bf, + size_t size, unsigned int width) +{ + struct dso *dso = he->host_ms.map ? map__dso(he->host_ms.map) : NULL; + char level = (dso && dso__kernel(dso)) ? 'k' : '.'; + u64 ip = he->host_ip; + + if (!he->host_ms.sym && he->host_ms.map) + ip = map__unmap_ip(he->host_ms.map, ip); + + return _hist_entry__sym_snprintf(&he->host_ms, ip, level, bf, size, width); +} + +static struct sort_entry sort_host_sym = { + .se_header = "Host Symbol", + .se_cmp = sort__host_sym_cmp, + .se_sort = sort__host_sym_sort, + .se_snprintf = hist_entry__host_sym_snprintf, + .se_width_idx = HISTC_HOST_SYMBOL, +}; + /* --sort type */ struct annotated_data_type unknown_type = { @@ -2757,6 +2862,10 @@ static struct sort_dimension common_sort_dimensions[] = { DIM(SORT_SYM_OFFSET, "symoff", sort_sym_offset), DIM(SORT_ANNOTATE_DATA_TYPE_CACHELINE, "typecln", sort_type_cacheline), DIM(SORT_PARALLELISM, "parallelism", sort_parallelism), + DIM(SORT_HOST_IP, "host_ip", sort_host_ip), + DIM(SORT_HOST_DSO, "host_dso", sort_host_dso), + DIM(SORT_HOST_SYM, "host_sym", sort_host_sym), + DIM(SORT_HOST_SYMBOL, "host_symbol", sort_host_sym), }; #undef DIM @@ -3712,6 +3821,10 @@ static int __sort_dimension__update(struct sort_dimension *sd, } else if (sd->entry == &sort_sym_offset) { list->sym = 1; + } else if (sd->entry == &sort_host_sym) { + list->host_sym = 1; + if (sort__mode == SORT_MODE__DIFF) + sd->entry->se_collapse = sort__host_sym_sort; } else if (sd->entry == &sort_dso) { list->dso = 1; } else if (sd->entry == &sort_socket) { @@ -4453,6 +4566,7 @@ void reset_output_field(void) perf_hpp_list.need_collapse = 0; perf_hpp_list.parent = 0; perf_hpp_list.sym = 0; + perf_hpp_list.host_sym = 0; perf_hpp_list.dso = 0; field_order = NULL; diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h index c962e77e4b93..db6f541a82a2 100644 --- a/tools/perf/util/sort.h +++ b/tools/perf/util/sort.h @@ -76,6 +76,10 @@ enum sort_type { SORT_ANNOTATE_DATA_TYPE_CACHELINE, SORT_PARALLELISM, SORT_TGID, + SORT_HOST_IP, + SORT_HOST_DSO, + SORT_HOST_SYM, + SORT_HOST_SYMBOL, /* branch stack specific sort keys */ __SORT_BRANCH_STACK, -- 2.56.1.915.g69d5ec7298-goog