Re: [PATCH 08/22] perf daemon: Add config file change check

2021-01-20 Thread Namhyung Kim
On Wed, Jan 20, 2021 at 3:51 AM Jiri Olsa wrote: > > On Tue, Jan 19, 2021 at 02:31:55PM +0900, Namhyung Kim wrote: > > On Sun, Jan 3, 2021 at 7:05 AM Jiri Olsa wrote: > > > > > > Adding support to detect daemon's config file changes > > > and re-read the configuration when that happens. > > > > H

Re: [PATCH 08/22] perf daemon: Add config file change check

2021-01-19 Thread Jiri Olsa
On Tue, Jan 19, 2021 at 02:31:55PM +0900, Namhyung Kim wrote: > On Sun, Jan 3, 2021 at 7:05 AM Jiri Olsa wrote: > > > > Adding support to detect daemon's config file changes > > and re-read the configuration when that happens. > > Hmm.. maybe some of the code in the previous commit can be moved h

Re: [PATCH 08/22] perf daemon: Add config file change check

2021-01-18 Thread Namhyung Kim
On Sun, Jan 3, 2021 at 7:05 AM Jiri Olsa wrote: > > Adding support to detect daemon's config file changes > and re-read the configuration when that happens. Hmm.. maybe some of the code in the previous commit can be moved here. Thanks, Namhyung > > Using inotify file descriptor pluged into the

[PATCH 08/22] perf daemon: Add config file change check

2021-01-02 Thread Jiri Olsa
Adding support to detect daemon's config file changes and re-read the configuration when that happens. Using inotify file descriptor pluged into the main fdarray object for polling. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --over