Contributors: 14
| Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
| Johannes Weiner |
204 |
62.96% |
4 |
21.05% |
| Suren Baghdasaryan |
54 |
16.67% |
2 |
10.53% |
| Chengming Zhou |
36 |
11.11% |
2 |
10.53% |
| Paul Menage |
6 |
1.85% |
1 |
5.26% |
| Domenico Cerasuolo |
5 |
1.54% |
1 |
5.26% |
| Dan Schatzberg |
5 |
1.54% |
1 |
5.26% |
| Vlastimil Babka |
3 |
0.93% |
1 |
5.26% |
| Ingo Molnar |
3 |
0.93% |
1 |
5.26% |
| Ben Segall |
2 |
0.62% |
1 |
5.26% |
| Peter Zijlstra |
2 |
0.62% |
1 |
5.26% |
| Anna-Maria Gleixner |
1 |
0.31% |
1 |
5.26% |
| Tejun Heo |
1 |
0.31% |
1 |
5.26% |
| Sargun Dhillon |
1 |
0.31% |
1 |
5.26% |
| Liu Xinpeng |
1 |
0.31% |
1 |
5.26% |
| Total |
324 |
|
19 |
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_PSI_H
#define _LINUX_PSI_H
#include <linux/jump_label.h>
#include <linux/psi_types.h>
#include <linux/sched.h>
#include <linux/poll.h>
#include <linux/cgroup-defs.h>
#include <linux/cgroup.h>
struct seq_file;
struct css_set;
#ifdef CONFIG_PSI
extern struct static_key_false psi_disabled;
extern struct psi_group psi_system;
void psi_init(void);
void psi_memstall_enter(unsigned long *flags);
void psi_memstall_leave(unsigned long *flags);
int psi_show(struct seq_file *s, struct psi_group *group, enum psi_res res);
struct psi_trigger *psi_trigger_create(struct psi_group *group,
char *buf, enum psi_res res, struct file *file);
void psi_trigger_destroy(struct psi_trigger *t);
__poll_t psi_trigger_poll(void **trigger_ptr, struct file *file,
poll_table *wait);
#ifdef CONFIG_CGROUPS
static inline struct psi_group *cgroup_psi(struct cgroup *cgrp)
{
return cgroup_ino(cgrp) == 1 ? &psi_system : cgrp->psi;
}
int psi_cgroup_alloc(struct cgroup *cgrp);
void psi_cgroup_free(struct cgroup *cgrp);
void cgroup_move_task(struct task_struct *p, struct css_set *to);
void psi_cgroup_restart(struct psi_group *group);
#endif
#else /* CONFIG_PSI */
static inline void psi_init(void) {}
static inline void psi_memstall_enter(unsigned long *flags) {}
static inline void psi_memstall_leave(unsigned long *flags) {}
#ifdef CONFIG_CGROUPS
static inline int psi_cgroup_alloc(struct cgroup *cgrp)
{
return 0;
}
static inline void psi_cgroup_free(struct cgroup *cgrp)
{
}
static inline void cgroup_move_task(struct task_struct *p, struct css_set *to)
{
rcu_assign_pointer(p->cgroups, to);
}
static inline void psi_cgroup_restart(struct psi_group *group) {}
#endif
#endif /* CONFIG_PSI */
#endif /* _LINUX_PSI_H */