~ubuntu-branches/ubuntu/wily/sysstat/wily

« back to all changes in this revision

Viewing changes to activity.c

  • Committer: Package Import Robot
  • Author(s): Robert Luberda
  • Date: 2013-06-13 22:27:39 UTC
  • mfrom: (1.4.3)
  • Revision ID: package-import@ubuntu.com-20130613222739-k73hvrwurt5phlan
Tags: 10.1.6-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * activity.c: Define system activities available for sar/sadc.
3
 
 * (C) 1999-2012 by Sebastien GODARD (sysstat <at> orange.fr)
 
3
 * (C) 1999-2013 by Sebastien GODARD (sysstat <at> orange.fr)
4
4
 *
5
5
 ***************************************************************************
6
6
 * This program is free software; you can redistribute it and/or modify it *
1195
1195
        .bitmap         = NULL
1196
1196
};
1197
1197
 
 
1198
/* Filesystem usage activity */
 
1199
struct activity filesystem_act = {
 
1200
        .id             = A_FILESYSTEM,
 
1201
        .options        = AO_NULL,
 
1202
        .magic          = ACTIVITY_MAGIC_BASE,
 
1203
        .group          = G_DISK,
 
1204
#ifdef SOURCE_SADC
 
1205
        .f_count        = wrap_get_filesystem_nr,
 
1206
        .f_count2       = NULL,
 
1207
        .f_read         = wrap_read_filesystem,
 
1208
#endif
 
1209
#ifdef SOURCE_SAR
 
1210
        .f_print        = print_filesystem_stats,
 
1211
        .f_print_avg    = print_avg_filesystem_stats,
 
1212
#endif
 
1213
#ifdef SOURCE_SADF
 
1214
        .f_render       = render_filesystem_stats,
 
1215
        .f_xml_print    = xml_print_filesystem_stats,
 
1216
        .f_json_print   = json_print_filesystem_stats,
 
1217
        .hdr_line       = "FILESYSTEM,MBfsfree;MBfsused;%fsused;%ufsused;Ifree;Iused;%Iused",
 
1218
        .name           = "A_FILESYSTEM",
 
1219
#endif
 
1220
        .nr             = -1,
 
1221
        .nr2            = 1,
 
1222
        .fsize          = STATS_FILESYSTEM_SIZE,
 
1223
        .msize          = STATS_FILESYSTEM_SIZE,
 
1224
        .opt_flags      = 0,
 
1225
        .buf            = {NULL, NULL, NULL},
 
1226
        .bitmap         = NULL
 
1227
};
 
1228
 
1198
1229
 
1199
1230
/*
1200
1231
 * Array of activities.
1239
1270
        &pwr_temp_act,
1240
1271
        &pwr_in_act,
1241
1272
        &pwr_wghfreq_act,
1242
 
        &pwr_usb_act            /* AO_CLOSE_MARKUP */
 
1273
        &pwr_usb_act,           /* AO_CLOSE_MARKUP */
1243
1274
        /* </power-management> */
 
1275
        &filesystem_act
1244
1276
};