perf hist: Remove keysym.h include from hist.h

hist.h isn't related to UI and so remove the UI inclusion. Fix the
transitive dependency issues this exposes.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Ian Rogers 2026-09-02 08:48:58 -07:00 committed by Arnaldo Carvalho de Melo
parent d845187d47
commit 537ff9c427
10 changed files with 17 additions and 6 deletions

View File

@ -24,6 +24,7 @@
#include "arch/common.h"
#include "builtin.h"
#include "perf.h"
#include "ui/keysyms.h"
#include "ui/progress.h"
#include "ui/ui.h"
#include "util/annotate-data.h"
@ -46,6 +47,13 @@
#include "util/tool.h"
#include "util/util.h"
#ifndef HAVE_SLANG_SUPPORT
#undef K_LEFT
#define K_LEFT -1000
#undef K_RIGHT
#define K_RIGHT -2000
#endif
struct perf_annotate {
struct perf_tool tool;
struct perf_session *session;

View File

@ -49,6 +49,7 @@
#include "thread.h"
#include "tool.h"
#include "ui/browsers/hists.h"
#include "ui/keysyms.h"
#include "ui/progress.h"
#include "ui/ui.h"
#include "util/annotate.h"

View File

@ -27,6 +27,7 @@
#include "util/kvm-stat.h"
#include "util/util.h"
#include "ui/browsers/hists.h"
#include "ui/keysyms.h"
#include "ui/progress.h"
#include "ui/ui.h"
#include "util/string2.h"

View File

@ -51,6 +51,7 @@
#include "util/units.h"
#include "util/unwind.h"
#include "util/util.h" // perf_tip()
#include "ui/keysyms.h"
#include "ui/ui.h"
#include "ui/progress.h"
#include "util/block-info.h"

View File

@ -51,6 +51,7 @@
#include "util/intlist.h"
#include "util/parse-branch-options.h"
#include "arch/common.h"
#include "ui/keysyms.h"
#include "ui/ui.h"
#include "util/debug.h"

View File

@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include "../browser.h"
#include "../helpline.h"
#include "../keysyms.h"
#include "../ui.h"
#include "../../util/annotate.h"
#include "../../util/debug.h"

View File

@ -35,6 +35,7 @@
#include "../browsers/hists.h"
#include "../helpline.h"
#include "../keysyms.h"
#include "../util.h"
#include "../ui.h"
#include "map.h"

View File

@ -7,6 +7,7 @@
#include "../../util/session.h"
#include "../../util/symbol.h"
#include "../browser.h"
#include "../keysyms.h"
#include "../libslang.h"
#include "config.h"
#include <linux/err.h>

View File

@ -15,7 +15,9 @@
#define ENABLE_SLFUTURE_CONST 1
#define ENABLE_SLFUTURE_VOID 1
#ifdef HAVE_SLANG_SUPPORT
#include <slang.h>
#endif
#define SL_KEY_UNTAB 0x1000

View File

@ -714,7 +714,6 @@ struct block_hist {
#define NO_ADDR 0
#ifdef HAVE_SLANG_SUPPORT
#include "../ui/keysyms.h"
void attr_to_script(char *buf, struct perf_event_attr *attr);
int __hist_entry__tui_annotate(struct hist_entry *he, struct map_symbol *ms,
@ -787,11 +786,6 @@ static inline int block_hists_tui_browse(struct block_hist *bh __maybe_unused,
{
return 0;
}
#define K_LEFT -1000
#define K_RIGHT -2000
#define K_SWITCH_INPUT_DATA -3000
#define K_RELOAD -4000
#endif
unsigned int hists__sort_list_width(struct hists *hists);