Re: [PATCH 07/22] perf daemon: Add daemon command

2021-01-27 Thread Jiri Olsa
On Wed, Jan 27, 2021 at 04:09:18PM +0900, Namhyung Kim wrote: > Hi Jiri, > > On Sun, Jan 3, 2021 at 7:05 AM Jiri Olsa wrote: > > +int cmd_daemon(int argc, const char **argv) > > +{ > > + struct option daemon_options[] = { > > + OPT_INCR('v', "verbose", &verbose, "be more verbo

Re: [PATCH 07/22] perf daemon: Add daemon command

2021-01-26 Thread Namhyung Kim
Hi Jiri, On Sun, Jan 3, 2021 at 7:05 AM Jiri Olsa wrote: > +int cmd_daemon(int argc, const char **argv) > +{ > + struct option daemon_options[] = { > + OPT_INCR('v', "verbose", &verbose, "be more verbose"), > + OPT_STRING(0, "config", &__daemon.config, > +

Re: [PATCH 07/22] perf daemon: Add daemon command

2021-01-20 Thread Namhyung Kim
On Wed, Jan 20, 2021 at 3:31 AM Jiri Olsa 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) { >

Re: [PATCH 07/22] perf daemon: Add daemon command

2021-01-19 Thread Jiri Olsa
On Tue, Jan 19, 2021 at 01:08:17PM +0900, Namhyung Kim wrote: SNIP > > + if (!session) > > + return -ENOMEM; > > + > > + pr_debug("reconfig: found new session %s\n", name); > > + /* This is new session, trigger reconfig to start it.

Re: [PATCH 07/22] perf daemon: Add daemon command

2021-01-18 Thread Namhyung Kim
Hi Jiri, On Sun, Jan 3, 2021 at 7:05 AM Jiri Olsa wrote: > > Adding daemon command that allows to run record sessions > on background. Each session represents one perf record > process and is configured in config file. > > Example: > > # cat ~/.perfconfig > [daemon] > base=/opt/perfdata > >

[PATCH 07/22] perf daemon: Add daemon command

2021-01-02 Thread Jiri Olsa
Adding daemon command that allows to run record sessions on background. Each session represents one perf record process and is configured in config file. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite --switch-output -a [