[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM9d7cg0vStd_zwXmdy4kbF5fGw54d+gTToENmTNAQQQrmju_A@mail.gmail.com>
Date: Thu, 21 Jan 2021 13:53:22 +0900
From: Namhyung Kim <namhyung@...nel.org>
To: Jiri Olsa <jolsa@...hat.com>
Cc: Jiri Olsa <jolsa@...nel.org>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
lkml <linux-kernel@...r.kernel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Ingo Molnar <mingo@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Michael Petlan <mpetlan@...hat.com>,
Ian Rogers <irogers@...gle.com>,
Stephane Eranian <eranian@...gle.com>,
Alexei Budankov <abudankov@...wei.com>
Subject: Re: [PATCH 07/22] perf daemon: Add daemon command
On Wed, Jan 20, 2021 at 3:31 AM Jiri Olsa <jolsa@...hat.com> wrote:
>
> On Tue, Jan 19, 2021 at 01:08:17PM +0900, Namhyung Kim wrote:
> > > + /* Reconfig session. */
> > > + pr_debug2("reconfig: session '%s' start\n", session->name);
> > > + if (session->pid > 0) {
> > > + session__kill(session);
> > > + pr_info("reconfig: session '%s' killed\n", session->name);
> > > + }
> > > + if (session__run(session, daemon))
> >
> > Does it call a config function? Or is it called already?
>
> daemon__reconfig kills and starts sessions based
> on the config data read by setup_server_config
>
> >
> > > + return -1;
> > > + pr_debug2("reconfig: session '%s' done\n", session->name);
> > > + session->state = SESSION_STATE__OK;
> >
> > I think RUNNING is a better name.
>
> I'll check, I'll put the state graph in comment,
> so we can discuss the changes
Yeah, that would be helpful.
Thanks,
Namhyung
Powered by blists - more mailing lists