}
}
+/*
+ ***************************************************************************
+ * Display NFS client statistics in SVG.
+ *
+ * IN:
+ * @a Activity structure with statistics.
+ * @curr Index in array for current sample statistics.
+ * @action Action expected from current function.
+ * @svg_p SVG specific parameters: Current graph number (.@graph_no),
+ * flag indicating that a restart record has been previously
+ * found (.@restart) and time used for the X axis origin
+ * (@ust_time_ref).
+ * @itv Interval of time in jiffies (only with F_MAIN action).
+ * @record_hdr Pointer on record header of current stats sample.
+ ***************************************************************************
+ */
+__print_funct_t svg_print_net_nfs_stats(struct activity *a, int curr, int action, struct svg_parm *svg_p,
+ unsigned long long itv, struct record_header *record_hdr)
+{
+ struct stats_net_nfs
+ *snnc = (struct stats_net_nfs *) a->buf[curr],
+ *snnp = (struct stats_net_nfs *) a->buf[!curr];
+ int group[] = {2, 2, 2};
+ char *title[] = {"NFS client statistics (1)", "NFS client statistics (2)", "NFS client statistics (3)"};
+ char *g_title[] = {"call/s", "retrans/s",
+ "read/s", "write/s",
+ "access/s", "getatt/s"};
+ static double *spmin, *spmax;
+ static char **out;
+ static int *outsize;
+
+ if (action & F_BEGIN) {
+ /*
+ * Allocate arrays that will contain the graphs data
+ * and the min/max values.
+ */
+ out = allocate_graph_lines(6, &outsize, &spmin, &spmax);
+ }
+
+ if (action & F_MAIN) {
+ /* Check for min/max values */
+ save_extrema(0, 0, 6, (void *) a->buf[curr], (void *) a->buf[!curr],
+ itv, spmin, spmax);
+
+ /* call/s */
+ lnappend(record_hdr->ust_time - svg_p->ust_time_ref,
+ S_VALUE(snnp->nfs_rpccnt, snnc->nfs_rpccnt, itv),
+ out, outsize, svg_p->restart);
+ /* retrans/s */
+ lnappend(record_hdr->ust_time - svg_p->ust_time_ref,
+ S_VALUE(snnp->nfs_rpcretrans, snnc->nfs_rpcretrans, itv),
+ out + 1, outsize + 1, svg_p->restart);
+ /* read/s */
+ lnappend(record_hdr->ust_time - svg_p->ust_time_ref,
+ S_VALUE(snnp->nfs_readcnt, snnc->nfs_readcnt, itv),
+ out + 2, outsize + 2, svg_p->restart);
+ /* write/s */
+ lnappend(record_hdr->ust_time - svg_p->ust_time_ref,
+ S_VALUE(snnp->nfs_writecnt, snnc->nfs_writecnt, itv),
+ out + 3, outsize + 3, svg_p->restart);
+ /* access/s */
+ lnappend(record_hdr->ust_time - svg_p->ust_time_ref,
+ S_VALUE(snnp->nfs_accesscnt, snnc->nfs_accesscnt, itv),
+ out + 4, outsize + 4, svg_p->restart);
+ /* getatt/s */
+ lnappend(record_hdr->ust_time - svg_p->ust_time_ref,
+ S_VALUE(snnp->nfs_getattcnt, snnc->nfs_getattcnt, itv),
+ out + 5, outsize + 5, svg_p->restart);
+ }
+
+ if (action & F_END) {
+ draw_activity_graphs(a->g_nr, SVG_LINE_GRAPH, title, g_title, NULL, group,
+ spmin, spmax, out, outsize, svg_p, record_hdr);
+
+ /* Free remaining structures */
+ free_graphs(out, outsize, spmin, spmax);
+ }
+}
+
/*
***************************************************************************
* Display network socket statistics in SVG.