This patch brings ability to print out auxiliary data associated
with file in procfs interface /proc/pid/fdinfo/fd.
In particular further patches make eventfd, evenpoll, signalfd
and fsnotify to print additional information complete enough
to restore these objects after checkpoint.
To simplify
This patch brings ability to print out auxiliary data associated
with file in procfs interface /proc/pid/fdinfo/fd.
In particular further patches make eventfd, evenpoll, signalfd
and fsnotify to print additional information complete enough
to restore these objects after checkpoint.
To simplify
On Fri, Jul 27, 2012 at 10:08:38AM +0400, Pavel Emelyanov wrote:
> >>> +static void *seq_next(struct seq_file *m, void *p, loff_t *pos)
> >>> +{
> >>> + struct proc_fdinfo_extra *extra = m->private;
> >>> + void *v = NULL;
> >>> +
> >>> + if (extra->driver) {
> >>> + int ret = 0;
> >>> +
>
>>> +static void *seq_next(struct seq_file *m, void *p, loff_t *pos)
>>> +{
>>> + struct proc_fdinfo_extra *extra = m->private;
>>> + void *v = NULL;
>>> +
>>> + if (extra->driver) {
>>> + int ret = 0;
>>> +
>>> + if (*pos == 0) {
>>> + v =
On Fri, Jul 27, 2012 at 07:48:28AM +0400, Pavel Emelyanov wrote:
> > +static int prep_fdinfo_driver(struct proc_fdinfo_extra *extra)
> > +{
> > + struct proc_fdinfo_driver *s;
> > +
> > + down_read(_drivers_sem);
> > + list_for_each_entry(s, _drivers, list) {
> > + if
On Fri, Jul 27, 2012 at 07:48:28AM +0400, Pavel Emelyanov wrote:
+static int prep_fdinfo_driver(struct proc_fdinfo_extra *extra)
+{
+ struct proc_fdinfo_driver *s;
+
+ down_read(fdinfo_drivers_sem);
+ list_for_each_entry(s, fdinfo_drivers, list) {
+ if
+static void *seq_next(struct seq_file *m, void *p, loff_t *pos)
+{
+ struct proc_fdinfo_extra *extra = m-private;
+ void *v = NULL;
+
+ if (extra-driver) {
+ int ret = 0;
+
+ if (*pos == 0) {
+ v = extra-driver-ops-start(m, pos);
+
On Fri, Jul 27, 2012 at 10:08:38AM +0400, Pavel Emelyanov wrote:
+static void *seq_next(struct seq_file *m, void *p, loff_t *pos)
+{
+ struct proc_fdinfo_extra *extra = m-private;
+ void *v = NULL;
+
+ if (extra-driver) {
+ int ret = 0;
+
+ if (*pos == 0) {
+
> +static int prep_fdinfo_driver(struct proc_fdinfo_extra *extra)
> +{
> + struct proc_fdinfo_driver *s;
> +
> + down_read(_drivers_sem);
> + list_for_each_entry(s, _drivers, list) {
> + if (s->probe(extra->f_file)) {
> + extra->driver = s;
> +
+static int prep_fdinfo_driver(struct proc_fdinfo_extra *extra)
+{
+ struct proc_fdinfo_driver *s;
+
+ down_read(fdinfo_drivers_sem);
+ list_for_each_entry(s, fdinfo_drivers, list) {
+ if (s-probe(extra-f_file)) {
+ extra-driver = s;
+
This patch brings ability to plug in auxiliary fdinfo providers.
For example in further patches eventfd, evenpoll and fsnotify
will print out information associated with files.
This feature is CONFIG_CHECKPOINT_RESTORE guarded to eliminate
overhead for those who don't need it at all (this
This patch brings ability to plug in auxiliary fdinfo providers.
For example in further patches eventfd, evenpoll and fsnotify
will print out information associated with files.
This feature is CONFIG_CHECKPOINT_RESTORE guarded to eliminate
overhead for those who don't need it at all (this
12 matches
Mail list logo