1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2002, 2003 Cluster File Systems, Inc.
5 * Author: Hariharan Thantry <thantry@users.sourceforge.net>
7 * This file is part of Lustre, http://www.lustre.org.
9 * Lustre is free software; you can redistribute it and/or
10 * modify it under the terms of version 2 of the GNU General Public
11 * License as published by the Free Software Foundation.
13 * Lustre is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with Lustre; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 # define EXPORT_SYMTAB
26 #define DEBUG_SUBSYSTEM S_CLASS
29 # include <linux/config.h>
30 # include <linux/module.h>
31 # include <linux/version.h>
32 # include <linux/slab.h>
33 # include <linux/types.h>
34 # if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
35 # include <asm/statfs.h>
37 # include <linux/seq_file.h>
38 #else /* __KERNEL__ */
39 # include <liblustre.h>
42 #include <linux/obd_class.h>
43 #include <linux/lprocfs_status.h>
44 #include <linux/lustre_fsfilt.h>
46 #if defined(LPROCFS) && defined(__KERNEL__)
48 struct proc_dir_entry *lprocfs_srch(struct proc_dir_entry *head,
51 struct proc_dir_entry *temp;
57 while (temp != NULL) {
58 if (strcmp(temp->name, name) == 0)
66 /* lprocfs API calls */
68 int lprocfs_add_vars(struct proc_dir_entry *root, struct lprocfs_vars *list,
71 if (root == NULL || list == NULL)
74 while (list->name != NULL) {
75 struct proc_dir_entry *cur_root, *proc;
76 char *pathcopy, *cur, *next, pathbuf[64];
77 int pathsize = strlen(list->name) + 1;
82 /* need copy of path for strsep */
83 if (strlen(list->name) > sizeof(pathbuf) - 1) {
84 OBD_ALLOC(pathcopy, pathsize);
92 strcpy(pathcopy, list->name);
94 while (cur_root != NULL && (cur = strsep(&next, "/"))) {
95 if (*cur =='\0') /* skip double/trailing "/" */
98 proc = lprocfs_srch(cur_root, cur);
99 CDEBUG(D_OTHER, "cur_root=%s, cur=%s, next=%s, (%s)\n",
100 cur_root->name, cur, next,
101 (proc ? "exists" : "new"));
103 cur_root = (proc ? proc :
104 proc_mkdir(cur, cur_root));
105 } else if (proc == NULL) {
109 if (list->write_fptr)
111 proc = create_proc_entry(cur, mode, cur_root);
115 if (pathcopy != pathbuf)
116 OBD_FREE(pathcopy, pathsize);
118 if (cur_root == NULL || proc == NULL) {
119 CERROR("LprocFS: No memory to create /proc entry %s",
124 proc->read_proc = list->read_fptr;
125 proc->write_proc = list->write_fptr;
126 proc->data = (list->data ? list->data : data);
132 void lprocfs_remove(struct proc_dir_entry *root)
134 struct proc_dir_entry *temp = root;
135 struct proc_dir_entry *rm_entry;
136 struct proc_dir_entry *parent;
138 LASSERT(root != NULL);
139 parent = root->parent;
140 LASSERT(parent != NULL);
143 while (temp->subdir != NULL)
148 remove_proc_entry(rm_entry->name, rm_entry->parent);
154 struct proc_dir_entry *lprocfs_register(const char *name,
155 struct proc_dir_entry *parent,
156 struct lprocfs_vars *list, void *data)
158 struct proc_dir_entry *newchild;
160 newchild = lprocfs_srch(parent, name);
161 if (newchild != NULL) {
162 CERROR(" Lproc: Attempting to register %s more than once \n",
164 return ERR_PTR(-EALREADY);
167 newchild = proc_mkdir(name, parent);
168 if (newchild != NULL && list != NULL) {
169 int rc = lprocfs_add_vars(newchild, list, data);
171 lprocfs_remove(newchild);
178 /* Generic callbacks */
180 int lprocfs_rd_u64(char *page, char **start, off_t off,
181 int count, int *eof, void *data)
183 LASSERT(data != NULL);
185 return snprintf(page, count, LPU64"\n", *(__u64 *)data);
188 int lprocfs_rd_uuid(char *page, char **start, off_t off, int count,
189 int *eof, void *data)
191 struct obd_device *dev = (struct obd_device*)data;
193 LASSERT(dev != NULL);
195 return snprintf(page, count, "%s\n", dev->obd_uuid.uuid);
198 int lprocfs_rd_name(char *page, char **start, off_t off, int count,
199 int *eof, void* data)
201 struct obd_device *dev = (struct obd_device *)data;
203 LASSERT(dev != NULL);
204 LASSERT(dev->obd_name != NULL);
206 return snprintf(page, count, "%s\n", dev->obd_name);
209 int lprocfs_rd_fstype(char *page, char **start, off_t off, int count, int *eof,
212 struct obd_device *obd = (struct obd_device *)data;
214 LASSERT(obd != NULL);
215 LASSERT(obd->obd_fsops != NULL);
216 LASSERT(obd->obd_fsops->fs_type != NULL);
217 return snprintf(page, count, "%s\n", obd->obd_fsops->fs_type);
220 int lprocfs_rd_blksize(char *page, char **start, off_t off, int count,
221 int *eof, void *data)
223 struct obd_statfs osfs;
224 int rc = obd_statfs(data, &osfs, jiffies - HZ);
227 rc = snprintf(page, count, "%u\n", osfs.os_bsize);
232 int lprocfs_rd_kbytestotal(char *page, char **start, off_t off, int count,
233 int *eof, void *data)
235 struct obd_statfs osfs;
236 int rc = obd_statfs(data, &osfs, jiffies - HZ);
238 __u32 blk_size = osfs.os_bsize >> 10;
239 __u64 result = osfs.os_blocks;
241 while (blk_size >>= 1)
245 rc = snprintf(page, count, LPU64"\n", result);
250 int lprocfs_rd_kbytesfree(char *page, char **start, off_t off, int count,
251 int *eof, void *data)
253 struct obd_statfs osfs;
254 int rc = obd_statfs(data, &osfs, jiffies - HZ);
256 __u32 blk_size = osfs.os_bsize >> 10;
257 __u64 result = osfs.os_bfree;
259 while (blk_size >>= 1)
263 rc = snprintf(page, count, LPU64"\n", result);
268 int lprocfs_rd_filestotal(char *page, char **start, off_t off, int count,
269 int *eof, void *data)
271 struct obd_statfs osfs;
272 int rc = obd_statfs(data, &osfs, jiffies - HZ);
275 rc = snprintf(page, count, LPU64"\n", osfs.os_files);
281 int lprocfs_rd_filesfree(char *page, char **start, off_t off, int count,
282 int *eof, void *data)
284 struct obd_statfs osfs;
285 int rc = obd_statfs(data, &osfs, jiffies - HZ);
288 rc = snprintf(page, count, LPU64"\n", osfs.os_ffree);
293 int lprocfs_rd_filegroups(char *page, char **start, off_t off, int count,
294 int *eof, void *data)
297 return snprintf(page, count, "unimplemented\n");
300 int lprocfs_rd_server_uuid(char *page, char **start, off_t off, int count,
301 int *eof, void *data)
303 struct obd_device *obd = (struct obd_device *)data;
304 struct obd_import *imp;
305 static char* import_state_names[] = {
306 "<UNKNOWN 0>", "INVALID", "NEW", "DISCONN", "CONNECTING",
307 "REPLAY", "RECOVER", "FULL", "EVICTED",
309 char *imp_state_name = NULL;
311 LASSERT(obd != NULL);
312 imp = obd->u.cli.cl_import;
313 LASSERT(imp->imp_state <= LUSTRE_IMP_EVICTED);
314 imp_state_name = import_state_names[imp->imp_state];
316 return snprintf(page, count, "%s\t%s\n",
317 imp->imp_target_uuid.uuid, imp_state_name);
320 int lprocfs_rd_conn_uuid(char *page, char **start, off_t off, int count,
321 int *eof, void *data)
323 struct obd_device *obd = (struct obd_device*)data;
324 struct ptlrpc_connection *conn;
326 LASSERT(obd != NULL);
327 conn = obd->u.cli.cl_import->imp_connection;
328 LASSERT(conn != NULL);
330 return snprintf(page, count, "%s\n", conn->c_remote_uuid.uuid);
333 int lprocfs_rd_numrefs(char *page, char **start, off_t off, int count,
334 int *eof, void *data)
336 struct obd_type *class = (struct obd_type*) data;
338 LASSERT(class != NULL);
340 return snprintf(page, count, "%d\n", class->typ_refcnt);
343 int lprocfs_obd_attach(struct obd_device *dev, struct lprocfs_vars *list)
347 LASSERT(dev != NULL);
348 LASSERT(dev->obd_type != NULL);
349 LASSERT(dev->obd_type->typ_procroot != NULL);
351 dev->obd_proc_entry = lprocfs_register(dev->obd_name,
352 dev->obd_type->typ_procroot,
354 if (IS_ERR(dev->obd_proc_entry)) {
355 rc = PTR_ERR(dev->obd_proc_entry);
356 dev->obd_proc_entry = NULL;
361 int lprocfs_obd_detach(struct obd_device *dev)
363 if (dev && dev->obd_proc_entry) {
364 lprocfs_remove(dev->obd_proc_entry);
365 dev->obd_proc_entry = NULL;
370 struct lprocfs_stats *lprocfs_alloc_stats(unsigned int num)
372 struct lprocfs_stats *stats;
373 struct lprocfs_percpu *percpu;
374 unsigned int percpusize;
380 OBD_ALLOC(stats, offsetof(typeof(*stats), ls_percpu[num_online_cpus()]));
384 percpusize = L1_CACHE_ALIGN(offsetof(typeof(*percpu), lp_cntr[num]));
385 stats->ls_percpu_size = num_online_cpus() * percpusize;
386 OBD_ALLOC(stats->ls_percpu[0], stats->ls_percpu_size);
387 if (stats->ls_percpu[0] == NULL) {
388 OBD_FREE(stats, offsetof(typeof(*stats),
389 ls_percpu[num_online_cpus()]));
394 for (i = 1; i < num_online_cpus(); i++)
395 stats->ls_percpu[i] = (void *)(stats->ls_percpu[i - 1]) +
401 void lprocfs_free_stats(struct lprocfs_stats *stats)
403 if (stats->ls_num == 0)
406 OBD_FREE(stats->ls_percpu[0], stats->ls_percpu_size);
407 OBD_FREE(stats, offsetof(typeof(*stats), ls_percpu[num_online_cpus()]));
410 /* Reset counter under lock */
411 int lprocfs_counter_write(struct file *file, const char *buffer,
412 unsigned long count, void *data)
418 static void *lprocfs_stats_seq_start(struct seq_file *p, loff_t *pos)
420 struct lprocfs_stats *stats = p->private;
421 /* return 1st cpu location */
422 return (*pos >= stats->ls_num) ? NULL :
423 &(stats->ls_percpu[0]->lp_cntr[*pos]);
426 static void lprocfs_stats_seq_stop(struct seq_file *p, void *v)
430 static void *lprocfs_stats_seq_next(struct seq_file *p, void *v, loff_t *pos)
432 struct lprocfs_stats *stats = p->private;
434 return (*pos >= stats->ls_num) ? NULL :
435 &(stats->ls_percpu[0]->lp_cntr[*pos]);
438 /* seq file export of one lprocfs counter */
439 static int lprocfs_stats_seq_show(struct seq_file *p, void *v)
441 struct lprocfs_stats *stats = p->private;
442 struct lprocfs_counter *cntr = v;
443 struct lprocfs_counter t, ret = { .lc_min = ~(__u64)0 };
446 if (cntr == &(stats->ls_percpu[0])->lp_cntr[0]) {
448 do_gettimeofday(&now);
449 rc = seq_printf(p, "%-25s %lu.%lu secs.usecs\n",
450 "snapshot_time", now.tv_sec, now.tv_usec);
454 idx = cntr - &(stats->ls_percpu[0])->lp_cntr[0];
456 for (i = 0; i < num_online_cpus(); i++) {
457 struct lprocfs_counter *percpu_cntr =
458 &(stats->ls_percpu[i])->lp_cntr[idx];
462 centry = atomic_read(&percpu_cntr->lc_cntl.la_entry);
463 t.lc_count = percpu_cntr->lc_count;
464 t.lc_sum = percpu_cntr->lc_sum;
465 t.lc_min = percpu_cntr->lc_min;
466 t.lc_max = percpu_cntr->lc_max;
467 t.lc_sumsquare = percpu_cntr->lc_sumsquare;
468 } while (centry != atomic_read(&percpu_cntr->lc_cntl.la_entry) &&
469 centry != atomic_read(&percpu_cntr->lc_cntl.la_exit));
470 ret.lc_count += t.lc_count;
471 ret.lc_sum += t.lc_sum;
472 if (t.lc_min < ret.lc_min)
473 ret.lc_min = t.lc_min;
474 if (t.lc_max > ret.lc_max)
475 ret.lc_max = t.lc_max;
476 ret.lc_sumsquare += t.lc_sumsquare;
479 rc = seq_printf(p, "%-25s "LPU64" samples [%s]", cntr->lc_name,
480 ret.lc_count, cntr->lc_units);
484 if ((cntr->lc_config & LPROCFS_CNTR_AVGMINMAX) && (ret.lc_count > 0)) {
485 rc = seq_printf(p, " "LPU64" "LPU64" "LPU64,
486 ret.lc_min, ret.lc_max, ret.lc_sum);
489 if (cntr->lc_config & LPROCFS_CNTR_STDDEV)
490 rc = seq_printf(p, " "LPU64, ret.lc_sumsquare);
494 rc = seq_printf(p, "\n");
496 return (rc < 0) ? rc : 0;
499 struct seq_operations lprocfs_stats_seq_sops = {
500 start: lprocfs_stats_seq_start,
501 stop: lprocfs_stats_seq_stop,
502 next: lprocfs_stats_seq_next,
503 show: lprocfs_stats_seq_show,
506 static int lprocfs_stats_seq_open(struct inode *inode, struct file *file)
508 struct proc_dir_entry *dp = inode->u.generic_ip;
509 struct seq_file *seq;
512 rc = seq_open(file, &lprocfs_stats_seq_sops);
515 seq = file->private_data;
516 seq->private = dp->data;
520 struct file_operations lprocfs_stats_seq_fops = {
521 open: lprocfs_stats_seq_open,
524 release: seq_release,
527 int lprocfs_register_stats(struct proc_dir_entry *root, const char *name,
528 struct lprocfs_stats *stats)
530 struct proc_dir_entry *entry;
531 LASSERT(root != NULL);
533 entry = create_proc_entry(name, 0444, root);
536 entry->proc_fops = &lprocfs_stats_seq_fops;
537 entry->data = (void *)stats;
538 entry->write_proc = lprocfs_counter_write;
542 void lprocfs_counter_init(struct lprocfs_stats *stats, int index,
543 unsigned conf, const char *name, const char *units)
545 struct lprocfs_counter *c;
548 LASSERT(stats != NULL);
549 for (i = 0; i < num_online_cpus(); i++) {
550 c = &(stats->ls_percpu[i]->lp_cntr[index]);
552 c->lc_min = ~(__u64)0;
557 EXPORT_SYMBOL(lprocfs_counter_init);
559 #define LPROCFS_OBD_OP_INIT(base, stats, op) \
561 unsigned int coffset = base + OBD_COUNTER_OFFSET(op); \
562 LASSERT(coffset < stats->ls_num); \
563 lprocfs_counter_init(stats, coffset, 0, #op, "reqs"); \
566 int lprocfs_alloc_obd_stats(struct obd_device *obd, unsigned num_private_stats)
568 struct lprocfs_stats *stats;
569 unsigned int num_stats;
572 LASSERT(obd->obd_stats == NULL);
573 LASSERT(obd->obd_proc_entry != NULL);
574 LASSERT(obd->obd_cntr_base == 0);
576 num_stats = 1 + OBD_COUNTER_OFFSET(notify) +
578 stats = lprocfs_alloc_stats(num_stats);
582 LPROCFS_OBD_OP_INIT(num_private_stats, stats, iocontrol);
583 LPROCFS_OBD_OP_INIT(num_private_stats, stats, get_info);
584 LPROCFS_OBD_OP_INIT(num_private_stats, stats, set_info);
585 LPROCFS_OBD_OP_INIT(num_private_stats, stats, attach);
586 LPROCFS_OBD_OP_INIT(num_private_stats, stats, detach);
587 LPROCFS_OBD_OP_INIT(num_private_stats, stats, setup);
588 LPROCFS_OBD_OP_INIT(num_private_stats, stats, postsetup);
589 LPROCFS_OBD_OP_INIT(num_private_stats, stats, precleanup);
590 LPROCFS_OBD_OP_INIT(num_private_stats, stats, cleanup);
591 LPROCFS_OBD_OP_INIT(num_private_stats, stats, postrecov);
592 LPROCFS_OBD_OP_INIT(num_private_stats, stats, connect);
593 LPROCFS_OBD_OP_INIT(num_private_stats, stats, disconnect);
594 LPROCFS_OBD_OP_INIT(num_private_stats, stats, statfs);
595 LPROCFS_OBD_OP_INIT(num_private_stats, stats, packmd);
596 LPROCFS_OBD_OP_INIT(num_private_stats, stats, unpackmd);
597 LPROCFS_OBD_OP_INIT(num_private_stats, stats, preallocate);
598 LPROCFS_OBD_OP_INIT(num_private_stats, stats, create);
599 LPROCFS_OBD_OP_INIT(num_private_stats, stats, destroy);
600 LPROCFS_OBD_OP_INIT(num_private_stats, stats, setattr);
601 LPROCFS_OBD_OP_INIT(num_private_stats, stats, getattr);
602 LPROCFS_OBD_OP_INIT(num_private_stats, stats, getattr_async);
603 LPROCFS_OBD_OP_INIT(num_private_stats, stats, brw);
604 LPROCFS_OBD_OP_INIT(num_private_stats, stats, brw_async);
605 LPROCFS_OBD_OP_INIT(num_private_stats, stats, prep_async_page);
606 LPROCFS_OBD_OP_INIT(num_private_stats, stats, queue_async_io);
607 LPROCFS_OBD_OP_INIT(num_private_stats, stats, set_async_flags);
608 LPROCFS_OBD_OP_INIT(num_private_stats, stats, queue_sync_io);
609 LPROCFS_OBD_OP_INIT(num_private_stats, stats, trigger_sync_io);
610 LPROCFS_OBD_OP_INIT(num_private_stats, stats, teardown_async_page);
611 LPROCFS_OBD_OP_INIT(num_private_stats, stats, punch);
612 LPROCFS_OBD_OP_INIT(num_private_stats, stats, sync);
613 LPROCFS_OBD_OP_INIT(num_private_stats, stats, migrate);
614 LPROCFS_OBD_OP_INIT(num_private_stats, stats, copy);
615 LPROCFS_OBD_OP_INIT(num_private_stats, stats, iterate);
616 LPROCFS_OBD_OP_INIT(num_private_stats, stats, preprw);
617 LPROCFS_OBD_OP_INIT(num_private_stats, stats, commitrw);
618 LPROCFS_OBD_OP_INIT(num_private_stats, stats, enqueue);
619 LPROCFS_OBD_OP_INIT(num_private_stats, stats, match);
620 LPROCFS_OBD_OP_INIT(num_private_stats, stats, change_cbdata);
621 LPROCFS_OBD_OP_INIT(num_private_stats, stats, cancel);
622 LPROCFS_OBD_OP_INIT(num_private_stats, stats, cancel_unused);
623 LPROCFS_OBD_OP_INIT(num_private_stats, stats, san_preprw);
624 LPROCFS_OBD_OP_INIT(num_private_stats, stats, init_export);
625 LPROCFS_OBD_OP_INIT(num_private_stats, stats, destroy_export);
626 LPROCFS_OBD_OP_INIT(num_private_stats, stats, lock_contains);
627 LPROCFS_OBD_OP_INIT(num_private_stats, stats, llog_init);
628 LPROCFS_OBD_OP_INIT(num_private_stats, stats, llog_finish);
629 LPROCFS_OBD_OP_INIT(num_private_stats, stats, pin);
630 LPROCFS_OBD_OP_INIT(num_private_stats, stats, unpin);
631 LPROCFS_OBD_OP_INIT(num_private_stats, stats, invalidate_import);
632 LPROCFS_OBD_OP_INIT(num_private_stats, stats, notify);
634 for (i = num_private_stats; i < num_stats; i++) {
635 /* If this LBUGs, it is likely that an obd
636 * operation was added to struct obd_ops in
637 * <linux/obd.h>, and that the corresponding line item
638 * LPROCFS_OBD_OP_INIT(.., .., opname)
639 * is missing from the list above. */
640 if (stats->ls_percpu[0]->lp_cntr[i].lc_name == NULL) {
641 CERROR("Missing obd_stat initializer obd_op "
642 "operation at offset %d. Aborting.\n",
643 i - num_private_stats);
647 rc = lprocfs_register_stats(obd->obd_proc_entry, "stats", stats);
649 lprocfs_free_stats(stats);
651 obd->obd_stats = stats;
652 obd->obd_cntr_base = num_private_stats;
657 void lprocfs_free_obd_stats(struct obd_device *obd)
659 struct lprocfs_stats *stats = obd->obd_stats;
662 obd->obd_stats = NULL;
663 lprocfs_free_stats(stats);
667 int lprocfs_write_helper(const char *buffer, unsigned long count,
670 char kernbuf[20], *end;
672 if (count > (sizeof(kernbuf) - 1))
675 if (copy_from_user(kernbuf, buffer, count))
678 kernbuf[count] = '\0';
680 *val = simple_strtol(kernbuf, &end, 0);
687 int lprocfs_obd_seq_create(struct obd_device *dev, char *name, mode_t mode,
688 struct file_operations *seq_fops, void *data)
690 struct proc_dir_entry *entry;
693 entry = create_proc_entry(name, mode, dev->obd_proc_entry);
696 entry->proc_fops = seq_fops;
701 EXPORT_SYMBOL(lprocfs_obd_seq_create);
703 void lprocfs_oh_tally(struct obd_histogram *oh, unsigned int value)
707 if (value >= OBD_HIST_MAX)
708 value = OBD_HIST_MAX - 1;
710 spin_lock_irqsave(&oh->oh_lock, flags);
711 oh->oh_buckets[value]++;
712 spin_unlock_irqrestore(&oh->oh_lock, flags);
714 EXPORT_SYMBOL(lprocfs_oh_tally);
716 void lprocfs_oh_tally_log2(struct obd_histogram *oh, unsigned int value)
720 for (val = 0; ((1 << val) < value) && (val <= OBD_HIST_MAX); val++)
723 lprocfs_oh_tally(oh, val);
725 EXPORT_SYMBOL(lprocfs_oh_tally_log2);
727 unsigned long lprocfs_oh_sum(struct obd_histogram *oh)
729 unsigned long ret = 0;
732 for (i = 0; i < OBD_HIST_MAX; i++)
733 ret += oh->oh_buckets[i];
736 EXPORT_SYMBOL(lprocfs_oh_sum);
738 void lprocfs_oh_clear(struct obd_histogram *oh)
741 spin_lock_irqsave(&oh->oh_lock, flags);
742 memset(oh->oh_buckets, 0, sizeof(oh->oh_buckets));
743 spin_unlock_irqrestore(&oh->oh_lock, flags);
745 EXPORT_SYMBOL(lprocfs_oh_clear);
749 EXPORT_SYMBOL(lprocfs_register);
750 EXPORT_SYMBOL(lprocfs_srch);
751 EXPORT_SYMBOL(lprocfs_remove);
752 EXPORT_SYMBOL(lprocfs_add_vars);
753 EXPORT_SYMBOL(lprocfs_obd_attach);
754 EXPORT_SYMBOL(lprocfs_obd_detach);
755 EXPORT_SYMBOL(lprocfs_alloc_stats);
756 EXPORT_SYMBOL(lprocfs_free_stats);
757 EXPORT_SYMBOL(lprocfs_register_stats);
758 EXPORT_SYMBOL(lprocfs_alloc_obd_stats);
759 EXPORT_SYMBOL(lprocfs_free_obd_stats);
761 EXPORT_SYMBOL(lprocfs_rd_u64);
762 EXPORT_SYMBOL(lprocfs_rd_uuid);
763 EXPORT_SYMBOL(lprocfs_rd_name);
764 EXPORT_SYMBOL(lprocfs_rd_fstype);
765 EXPORT_SYMBOL(lprocfs_rd_server_uuid);
766 EXPORT_SYMBOL(lprocfs_rd_conn_uuid);
767 EXPORT_SYMBOL(lprocfs_rd_numrefs);
769 EXPORT_SYMBOL(lprocfs_rd_blksize);
770 EXPORT_SYMBOL(lprocfs_rd_kbytestotal);
771 EXPORT_SYMBOL(lprocfs_rd_kbytesfree);
772 EXPORT_SYMBOL(lprocfs_rd_filestotal);
773 EXPORT_SYMBOL(lprocfs_rd_filesfree);
774 EXPORT_SYMBOL(lprocfs_rd_filegroups);
776 EXPORT_SYMBOL(lprocfs_write_helper);