Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 2 | #include <linux/cpumask.h> |
| 3 | #include <linux/fs.h> |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 4 | #include <linux/init.h> |
| 5 | #include <linux/interrupt.h> |
| 6 | #include <linux/kernel_stat.h> |
| 7 | #include <linux/proc_fs.h> |
| 8 | #include <linux/sched.h> |
Ingo Molnar | 03441a3 | 2017-02-08 18:51:35 +0100 | [diff] [blame] | 9 | #include <linux/sched/stat.h> |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 10 | #include <linux/seq_file.h> |
| 11 | #include <linux/slab.h> |
| 12 | #include <linux/time.h> |
Michael Weiß | 3ae700e | 2020-10-27 21:42:57 +0100 | [diff] [blame] | 13 | #include <linux/time_namespace.h> |
KOSAKI Motohiro | 26ddd8d | 2008-12-26 14:24:10 +0900 | [diff] [blame] | 14 | #include <linux/irqnr.h> |
Ingo Molnar | 32ef551 | 2017-02-05 11:48:36 +0100 | [diff] [blame] | 15 | #include <linux/sched/cputime.h> |
Michal Hocko | a25cac5 | 2011-08-24 09:40:25 +0200 | [diff] [blame] | 16 | #include <linux/tick.h> |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 17 | |
| 18 | #ifndef arch_irq_stat_cpu |
| 19 | #define arch_irq_stat_cpu(cpu) 0 |
| 20 | #endif |
| 21 | #ifndef arch_irq_stat |
| 22 | #define arch_irq_stat() 0 |
| 23 | #endif |
Martin Schwidefsky | cb85a6e | 2012-03-30 12:23:08 +0200 | [diff] [blame] | 24 | |
| 25 | #ifdef arch_idle_time |
| 26 | |
Josh Don | a803c35 | 2021-08-27 09:54:38 -0700 | [diff] [blame] | 27 | u64 get_idle_time(struct kernel_cpustat *kcs, int cpu) |
Martin Schwidefsky | cb85a6e | 2012-03-30 12:23:08 +0200 | [diff] [blame] | 28 | { |
Frederic Weisbecker | 7fb1327 | 2017-01-31 04:09:19 +0100 | [diff] [blame] | 29 | u64 idle; |
Martin Schwidefsky | cb85a6e | 2012-03-30 12:23:08 +0200 | [diff] [blame] | 30 | |
Alexey Dobriyan | 5713f35 | 2019-03-05 15:50:32 -0800 | [diff] [blame] | 31 | idle = kcs->cpustat[CPUTIME_IDLE]; |
Martin Schwidefsky | cb85a6e | 2012-03-30 12:23:08 +0200 | [diff] [blame] | 32 | if (cpu_online(cpu) && !nr_iowait_cpu(cpu)) |
Frederic Weisbecker | 42b425b | 2017-01-31 04:09:47 +0100 | [diff] [blame] | 33 | idle += arch_idle_time(cpu); |
Martin Schwidefsky | cb85a6e | 2012-03-30 12:23:08 +0200 | [diff] [blame] | 34 | return idle; |
| 35 | } |
| 36 | |
Alexey Dobriyan | 5713f35 | 2019-03-05 15:50:32 -0800 | [diff] [blame] | 37 | static u64 get_iowait_time(struct kernel_cpustat *kcs, int cpu) |
Martin Schwidefsky | cb85a6e | 2012-03-30 12:23:08 +0200 | [diff] [blame] | 38 | { |
Frederic Weisbecker | 7fb1327 | 2017-01-31 04:09:19 +0100 | [diff] [blame] | 39 | u64 iowait; |
Martin Schwidefsky | cb85a6e | 2012-03-30 12:23:08 +0200 | [diff] [blame] | 40 | |
Alexey Dobriyan | 5713f35 | 2019-03-05 15:50:32 -0800 | [diff] [blame] | 41 | iowait = kcs->cpustat[CPUTIME_IOWAIT]; |
Martin Schwidefsky | cb85a6e | 2012-03-30 12:23:08 +0200 | [diff] [blame] | 42 | if (cpu_online(cpu) && nr_iowait_cpu(cpu)) |
Frederic Weisbecker | 42b425b | 2017-01-31 04:09:47 +0100 | [diff] [blame] | 43 | iowait += arch_idle_time(cpu); |
Martin Schwidefsky | cb85a6e | 2012-03-30 12:23:08 +0200 | [diff] [blame] | 44 | return iowait; |
| 45 | } |
| 46 | |
| 47 | #else |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 48 | |
Josh Don | a803c35 | 2021-08-27 09:54:38 -0700 | [diff] [blame] | 49 | u64 get_idle_time(struct kernel_cpustat *kcs, int cpu) |
Michal Hocko | a25cac5 | 2011-08-24 09:40:25 +0200 | [diff] [blame] | 50 | { |
Frederic Weisbecker | 7fb1327 | 2017-01-31 04:09:19 +0100 | [diff] [blame] | 51 | u64 idle, idle_usecs = -1ULL; |
Michal Hocko | 7386cdb | 2012-10-10 11:51:09 +0530 | [diff] [blame] | 52 | |
| 53 | if (cpu_online(cpu)) |
Frederic Weisbecker | 7fb1327 | 2017-01-31 04:09:19 +0100 | [diff] [blame] | 54 | idle_usecs = get_cpu_idle_time_us(cpu, NULL); |
Michal Hocko | a25cac5 | 2011-08-24 09:40:25 +0200 | [diff] [blame] | 55 | |
Frederic Weisbecker | 7fb1327 | 2017-01-31 04:09:19 +0100 | [diff] [blame] | 56 | if (idle_usecs == -1ULL) |
Michal Hocko | 7386cdb | 2012-10-10 11:51:09 +0530 | [diff] [blame] | 57 | /* !NO_HZ or cpu offline so we can rely on cpustat.idle */ |
Alexey Dobriyan | 5713f35 | 2019-03-05 15:50:32 -0800 | [diff] [blame] | 58 | idle = kcs->cpustat[CPUTIME_IDLE]; |
Martin Schwidefsky | cb85a6e | 2012-03-30 12:23:08 +0200 | [diff] [blame] | 59 | else |
Frederic Weisbecker | 7fb1327 | 2017-01-31 04:09:19 +0100 | [diff] [blame] | 60 | idle = idle_usecs * NSEC_PER_USEC; |
Michal Hocko | a25cac5 | 2011-08-24 09:40:25 +0200 | [diff] [blame] | 61 | |
| 62 | return idle; |
| 63 | } |
| 64 | |
Alexey Dobriyan | 5713f35 | 2019-03-05 15:50:32 -0800 | [diff] [blame] | 65 | static u64 get_iowait_time(struct kernel_cpustat *kcs, int cpu) |
Michal Hocko | a25cac5 | 2011-08-24 09:40:25 +0200 | [diff] [blame] | 66 | { |
Frederic Weisbecker | 7fb1327 | 2017-01-31 04:09:19 +0100 | [diff] [blame] | 67 | u64 iowait, iowait_usecs = -1ULL; |
Michal Hocko | 7386cdb | 2012-10-10 11:51:09 +0530 | [diff] [blame] | 68 | |
| 69 | if (cpu_online(cpu)) |
Frederic Weisbecker | 7fb1327 | 2017-01-31 04:09:19 +0100 | [diff] [blame] | 70 | iowait_usecs = get_cpu_iowait_time_us(cpu, NULL); |
Michal Hocko | a25cac5 | 2011-08-24 09:40:25 +0200 | [diff] [blame] | 71 | |
Frederic Weisbecker | 7fb1327 | 2017-01-31 04:09:19 +0100 | [diff] [blame] | 72 | if (iowait_usecs == -1ULL) |
Michal Hocko | 7386cdb | 2012-10-10 11:51:09 +0530 | [diff] [blame] | 73 | /* !NO_HZ or cpu offline so we can rely on cpustat.iowait */ |
Alexey Dobriyan | 5713f35 | 2019-03-05 15:50:32 -0800 | [diff] [blame] | 74 | iowait = kcs->cpustat[CPUTIME_IOWAIT]; |
Michal Hocko | a25cac5 | 2011-08-24 09:40:25 +0200 | [diff] [blame] | 75 | else |
Frederic Weisbecker | 7fb1327 | 2017-01-31 04:09:19 +0100 | [diff] [blame] | 76 | iowait = iowait_usecs * NSEC_PER_USEC; |
Michal Hocko | a25cac5 | 2011-08-24 09:40:25 +0200 | [diff] [blame] | 77 | |
| 78 | return iowait; |
| 79 | } |
| 80 | |
Martin Schwidefsky | cb85a6e | 2012-03-30 12:23:08 +0200 | [diff] [blame] | 81 | #endif |
| 82 | |
Thomas Gleixner | c2da3f1 | 2019-02-08 14:48:04 +0100 | [diff] [blame] | 83 | static void show_irq_gap(struct seq_file *p, unsigned int gap) |
| 84 | { |
| 85 | static const char zeros[] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"; |
| 86 | |
| 87 | while (gap > 0) { |
| 88 | unsigned int inc; |
| 89 | |
| 90 | inc = min_t(unsigned int, gap, ARRAY_SIZE(zeros) / 2); |
| 91 | seq_write(p, zeros, 2 * inc); |
| 92 | gap -= inc; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | static void show_all_irqs(struct seq_file *p) |
| 97 | { |
| 98 | unsigned int i, next = 0; |
| 99 | |
| 100 | for_each_active_irq(i) { |
| 101 | show_irq_gap(p, i - next); |
| 102 | seq_put_decimal_ull(p, " ", kstat_irqs_usr(i)); |
| 103 | next = i + 1; |
| 104 | } |
| 105 | show_irq_gap(p, nr_irqs - next); |
| 106 | } |
| 107 | |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 108 | static int show_stat(struct seq_file *p, void *v) |
| 109 | { |
| 110 | int i, j; |
Glauber Costa | 3292beb | 2011-11-28 14:45:17 -0200 | [diff] [blame] | 111 | u64 user, nice, system, idle, iowait, irq, softirq, steal; |
| 112 | u64 guest, guest_nice; |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 113 | u64 sum = 0; |
Keika Kobayashi | d3d64df | 2009-06-17 16:25:55 -0700 | [diff] [blame] | 114 | u64 sum_softirq = 0; |
| 115 | unsigned int per_softirq_sums[NR_SOFTIRQS] = {0}; |
Arnd Bergmann | 519ded5 | 2016-08-02 14:03:22 -0700 | [diff] [blame] | 116 | struct timespec64 boottime; |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 117 | |
| 118 | user = nice = system = idle = iowait = |
Glauber Costa | 3292beb | 2011-11-28 14:45:17 -0200 | [diff] [blame] | 119 | irq = softirq = steal = 0; |
| 120 | guest = guest_nice = 0; |
Arnd Bergmann | 519ded5 | 2016-08-02 14:03:22 -0700 | [diff] [blame] | 121 | getboottime64(&boottime); |
Michael Weiß | 3ae700e | 2020-10-27 21:42:57 +0100 | [diff] [blame] | 122 | /* shift boot timestamp according to the timens offset */ |
| 123 | timens_sub_boottime(&boottime); |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 124 | |
| 125 | for_each_possible_cpu(i) { |
Frederic Weisbecker | 26dae14 | 2019-11-21 03:44:27 +0100 | [diff] [blame] | 126 | struct kernel_cpustat kcpustat; |
| 127 | u64 *cpustat = kcpustat.cpustat; |
Alexey Dobriyan | 5713f35 | 2019-03-05 15:50:32 -0800 | [diff] [blame] | 128 | |
Hanjie Lin | a3f8993 | 2023-04-19 17:41:08 +0800 | [diff] [blame^] | 129 | #ifdef CONFIG_AMLOGIC_APU |
| 130 | if (apu_enable && i == apu_id) |
| 131 | continue; |
| 132 | #endif |
Frederic Weisbecker | 26dae14 | 2019-11-21 03:44:27 +0100 | [diff] [blame] | 133 | kcpustat_cpu_fetch(&kcpustat, i); |
| 134 | |
| 135 | user += cpustat[CPUTIME_USER]; |
| 136 | nice += cpustat[CPUTIME_NICE]; |
| 137 | system += cpustat[CPUTIME_SYSTEM]; |
| 138 | idle += get_idle_time(&kcpustat, i); |
| 139 | iowait += get_iowait_time(&kcpustat, i); |
| 140 | irq += cpustat[CPUTIME_IRQ]; |
| 141 | softirq += cpustat[CPUTIME_SOFTIRQ]; |
| 142 | steal += cpustat[CPUTIME_STEAL]; |
| 143 | guest += cpustat[CPUTIME_GUEST]; |
Flavio Leitner | 346da4d | 2019-12-05 03:03:44 +0100 | [diff] [blame] | 144 | guest_nice += cpustat[CPUTIME_GUEST_NICE]; |
Frederic Weisbecker | 26dae14 | 2019-11-21 03:44:27 +0100 | [diff] [blame] | 145 | sum += kstat_cpu_irqs_sum(i); |
| 146 | sum += arch_irq_stat_cpu(i); |
Keika Kobayashi | d3d64df | 2009-06-17 16:25:55 -0700 | [diff] [blame] | 147 | |
| 148 | for (j = 0; j < NR_SOFTIRQS; j++) { |
| 149 | unsigned int softirq_stat = kstat_softirqs_cpu(j, i); |
| 150 | |
| 151 | per_softirq_sums[j] += softirq_stat; |
| 152 | sum_softirq += softirq_stat; |
| 153 | } |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 154 | } |
| 155 | sum += arch_irq_stat(); |
| 156 | |
Frederic Weisbecker | 7fb1327 | 2017-01-31 04:09:19 +0100 | [diff] [blame] | 157 | seq_put_decimal_ull(p, "cpu ", nsec_to_clock_t(user)); |
| 158 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); |
| 159 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(system)); |
| 160 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(idle)); |
| 161 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(iowait)); |
| 162 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(irq)); |
| 163 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(softirq)); |
| 164 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(steal)); |
| 165 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(guest)); |
| 166 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(guest_nice)); |
KAMEZAWA Hiroyuki | 1ac101a | 2012-03-23 15:02:54 -0700 | [diff] [blame] | 167 | seq_putc(p, '\n'); |
| 168 | |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 169 | for_each_online_cpu(i) { |
Frederic Weisbecker | 26dae14 | 2019-11-21 03:44:27 +0100 | [diff] [blame] | 170 | struct kernel_cpustat kcpustat; |
| 171 | u64 *cpustat = kcpustat.cpustat; |
| 172 | |
Hanjie Lin | a3f8993 | 2023-04-19 17:41:08 +0800 | [diff] [blame^] | 173 | #ifdef CONFIG_AMLOGIC_APU |
| 174 | if (apu_enable && i == apu_id) |
| 175 | continue; |
| 176 | #endif |
Frederic Weisbecker | 26dae14 | 2019-11-21 03:44:27 +0100 | [diff] [blame] | 177 | kcpustat_cpu_fetch(&kcpustat, i); |
Alexey Dobriyan | 5713f35 | 2019-03-05 15:50:32 -0800 | [diff] [blame] | 178 | |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 179 | /* Copy values here to work around gcc-2.95.3, gcc-2.96 */ |
Frederic Weisbecker | 26dae14 | 2019-11-21 03:44:27 +0100 | [diff] [blame] | 180 | user = cpustat[CPUTIME_USER]; |
| 181 | nice = cpustat[CPUTIME_NICE]; |
| 182 | system = cpustat[CPUTIME_SYSTEM]; |
| 183 | idle = get_idle_time(&kcpustat, i); |
| 184 | iowait = get_iowait_time(&kcpustat, i); |
| 185 | irq = cpustat[CPUTIME_IRQ]; |
| 186 | softirq = cpustat[CPUTIME_SOFTIRQ]; |
| 187 | steal = cpustat[CPUTIME_STEAL]; |
| 188 | guest = cpustat[CPUTIME_GUEST]; |
Flavio Leitner | 346da4d | 2019-12-05 03:03:44 +0100 | [diff] [blame] | 189 | guest_nice = cpustat[CPUTIME_GUEST_NICE]; |
KAMEZAWA Hiroyuki | 1ac101a | 2012-03-23 15:02:54 -0700 | [diff] [blame] | 190 | seq_printf(p, "cpu%d", i); |
Frederic Weisbecker | 7fb1327 | 2017-01-31 04:09:19 +0100 | [diff] [blame] | 191 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(user)); |
| 192 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); |
| 193 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(system)); |
| 194 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(idle)); |
| 195 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(iowait)); |
| 196 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(irq)); |
| 197 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(softirq)); |
| 198 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(steal)); |
| 199 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(guest)); |
| 200 | seq_put_decimal_ull(p, " ", nsec_to_clock_t(guest_nice)); |
KAMEZAWA Hiroyuki | 1ac101a | 2012-03-23 15:02:54 -0700 | [diff] [blame] | 201 | seq_putc(p, '\n'); |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 202 | } |
Joe Perches | 75ba1d0 | 2016-10-07 17:02:20 -0700 | [diff] [blame] | 203 | seq_put_decimal_ull(p, "intr ", (unsigned long long)sum); |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 204 | |
Thomas Gleixner | c2da3f1 | 2019-02-08 14:48:04 +0100 | [diff] [blame] | 205 | show_all_irqs(p); |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 206 | |
| 207 | seq_printf(p, |
| 208 | "\nctxt %llu\n" |
Arnd Bergmann | 519ded5 | 2016-08-02 14:03:22 -0700 | [diff] [blame] | 209 | "btime %llu\n" |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 210 | "processes %lu\n" |
Alexey Dobriyan | 01aee8f | 2021-04-22 23:02:25 +0300 | [diff] [blame] | 211 | "procs_running %u\n" |
Alexey Dobriyan | 9745516 | 2021-04-22 23:02:26 +0300 | [diff] [blame] | 212 | "procs_blocked %u\n", |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 213 | nr_context_switches(), |
Arnd Bergmann | 519ded5 | 2016-08-02 14:03:22 -0700 | [diff] [blame] | 214 | (unsigned long long)boottime.tv_sec, |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 215 | total_forks, |
| 216 | nr_running(), |
| 217 | nr_iowait()); |
| 218 | |
Joe Perches | 75ba1d0 | 2016-10-07 17:02:20 -0700 | [diff] [blame] | 219 | seq_put_decimal_ull(p, "softirq ", (unsigned long long)sum_softirq); |
Keika Kobayashi | d3d64df | 2009-06-17 16:25:55 -0700 | [diff] [blame] | 220 | |
| 221 | for (i = 0; i < NR_SOFTIRQS; i++) |
Joe Perches | 75ba1d0 | 2016-10-07 17:02:20 -0700 | [diff] [blame] | 222 | seq_put_decimal_ull(p, " ", per_softirq_sums[i]); |
Alexey Dobriyan | 9d6de12 | 2011-01-12 17:00:32 -0800 | [diff] [blame] | 223 | seq_putc(p, '\n'); |
Keika Kobayashi | d3d64df | 2009-06-17 16:25:55 -0700 | [diff] [blame] | 224 | |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 225 | return 0; |
| 226 | } |
| 227 | |
| 228 | static int stat_open(struct inode *inode, struct file *file) |
| 229 | { |
Alexey Dobriyan | 9a27e97 | 2018-08-21 21:54:41 -0700 | [diff] [blame] | 230 | unsigned int size = 1024 + 128 * num_online_cpus(); |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 231 | |
Eric Dumazet | 59a32e2 | 2012-03-23 15:02:53 -0700 | [diff] [blame] | 232 | /* minimum size to display an interrupt count : 2 bytes */ |
| 233 | size += 2 * nr_irqs; |
Heiko Carstens | f74373a | 2014-07-02 15:22:37 -0700 | [diff] [blame] | 234 | return single_open_size(file, show_stat, NULL, size); |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 235 | } |
| 236 | |
Alexey Dobriyan | 97a3253 | 2020-02-03 17:37:17 -0800 | [diff] [blame] | 237 | static const struct proc_ops stat_proc_ops = { |
Alexey Dobriyan | d919b33 | 2020-04-06 20:09:01 -0700 | [diff] [blame] | 238 | .proc_flags = PROC_ENTRY_PERMANENT, |
Alexey Dobriyan | 97a3253 | 2020-02-03 17:37:17 -0800 | [diff] [blame] | 239 | .proc_open = stat_open, |
Christoph Hellwig | 28589f9 | 2020-11-04 09:27:36 +0100 | [diff] [blame] | 240 | .proc_read_iter = seq_read_iter, |
Alexey Dobriyan | 97a3253 | 2020-02-03 17:37:17 -0800 | [diff] [blame] | 241 | .proc_lseek = seq_lseek, |
| 242 | .proc_release = single_release, |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 243 | }; |
| 244 | |
| 245 | static int __init proc_stat_init(void) |
| 246 | { |
Alexey Dobriyan | 97a3253 | 2020-02-03 17:37:17 -0800 | [diff] [blame] | 247 | proc_create("stat", 0, NULL, &stat_proc_ops); |
Alexey Dobriyan | df8106d | 2008-10-05 00:01:56 +0400 | [diff] [blame] | 248 | return 0; |
| 249 | } |
Paul Gortmaker | abaf378 | 2014-01-23 15:55:45 -0800 | [diff] [blame] | 250 | fs_initcall(proc_stat_init); |