[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <37D7C6CF3E00A74B8858931C1DB2F077537FFC3C@SHSMSX103.ccr.corp.intel.com>
Date: Thu, 11 Jan 2018 21:30:36 +0000
From: "Liang, Kan" <kan.liang@...el.com>
To: Jiri Olsa <jolsa@...hat.com>
CC: "acme@...nel.org" <acme@...nel.org>,
"peterz@...radead.org" <peterz@...radead.org>,
"mingo@...hat.com" <mingo@...hat.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"wangnan0@...wei.com" <wangnan0@...wei.com>,
"jolsa@...nel.org" <jolsa@...nel.org>,
"namhyung@...nel.org" <namhyung@...nel.org>,
"ak@...ux.intel.com" <ak@...ux.intel.com>,
"yao.jin@...ux.intel.com" <yao.jin@...ux.intel.com>
Subject: RE: [PATCH V3 11/12] perf top: switch default mode to overwrite mode
> SNIP
>
> > .max_stack = sysctl_perf_event_max_stack,
> > .sym_pcnt_filter = 5,
> > diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c
> > index 68146f4..56023e4 100644
> > --- a/tools/perf/ui/browsers/hists.c
> > +++ b/tools/perf/ui/browsers/hists.c
> > @@ -638,8 +638,13 @@ int hist_browser__run(struct hist_browser
> *browser, const char *help)
> > nr_entries = hist_browser__nr_entries(browser);
> > ui_browser__update_nr_entries(&browser->b,
> nr_entries);
> >
> > - if (browser->hists->stats.nr_lost_warned !=
> > - browser->hists-
> >stats.nr_events[PERF_RECORD_LOST]) {
> > + /*
> > + * Don't print lost events warning for perf top,
> > + * because it is overwrite mode.
> > + * Perf top is the only tool which has hbt timer.
> > + */
>
> I hate that warning, but still should it be ommited only for overwrite case?
> also please separate this change from the rest of the patch
Sure.
Will do it.
Thanks,
Kan
>
> jirka
>
> > + if ((browser->hists->stats.nr_lost_warned !=
> > + browser->hists-
> >stats.nr_events[PERF_RECORD_LOST]) && !hbt) {
> > browser->hists->stats.nr_lost_warned =
> > browser->hists-
> >stats.nr_events[PERF_RECORD_LOST];
> > ui_browser__warn_lost_events(&browser-
> >b);
> > @@ -3203,7 +3208,8 @@ static int perf_evsel_menu__run(struct
> perf_evsel_menu *menu,
> > case K_TIMER:
> > hbt->timer(hbt->arg);
> >
> > - if (!menu->lost_events_warned && menu-
> >lost_events) {
> > + if (!menu->lost_events_warned &&
> > + menu->lost_events && !hbt) {
> > ui_browser__warn_lost_events(&menu->b);
> > menu->lost_events_warned = true;
> > }
> > --
> > 2.5.5
> >
Powered by blists - more mailing lists