perfmonger 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +5 -13
  2. data/.gitignore +6 -0
  3. data/.tachikoma.yml +1 -0
  4. data/.travis.yml +18 -6
  5. data/Gemfile +1 -3
  6. data/Guardfile +26 -0
  7. data/NEWS +21 -0
  8. data/README.md +8 -9
  9. data/Rakefile +33 -1
  10. data/core/Makefile +23 -0
  11. data/core/build.sh +48 -0
  12. data/core/perfmonger-player.go +165 -0
  13. data/core/perfmonger-recorder.go +296 -0
  14. data/core/perfmonger-summarizer.go +207 -0
  15. data/core/subsystem/Makefile +3 -0
  16. data/core/subsystem/perfmonger.go +60 -0
  17. data/core/subsystem/perfmonger_darwin.go +22 -0
  18. data/core/subsystem/perfmonger_linux.go +292 -0
  19. data/core/subsystem/perfmonger_linux_test.go +73 -0
  20. data/core/subsystem/stat.go +214 -0
  21. data/core/subsystem/stat_test.go +281 -0
  22. data/core/subsystem/usage.go +410 -0
  23. data/core/subsystem/usage_test.go +496 -0
  24. data/lib/exec/operationBinding.rb.svn-base +59 -0
  25. data/lib/exec/perfmonger-player_darwin_amd64 +0 -0
  26. data/lib/exec/perfmonger-player_linux_386 +0 -0
  27. data/lib/exec/perfmonger-player_linux_amd64 +0 -0
  28. data/lib/exec/perfmonger-recorder_darwin_amd64 +0 -0
  29. data/lib/exec/perfmonger-recorder_linux_386 +0 -0
  30. data/lib/exec/perfmonger-recorder_linux_amd64 +0 -0
  31. data/lib/exec/perfmonger-summarizer_darwin_amd64 +0 -0
  32. data/lib/exec/perfmonger-summarizer_linux_386 +0 -0
  33. data/lib/exec/perfmonger-summarizer_linux_amd64 +0 -0
  34. data/lib/exec/perfmonger-summary_linux_386 +0 -0
  35. data/lib/exec/perfmonger-summary_linux_amd64 +0 -0
  36. data/lib/perfmonger/cli.rb +8 -3
  37. data/lib/perfmonger/command/core.rb +62 -0
  38. data/lib/perfmonger/command/live.rb +39 -0
  39. data/lib/perfmonger/command/play.rb +56 -0
  40. data/lib/perfmonger/command/plot.rb +30 -22
  41. data/lib/perfmonger/command/record.rb +3 -2
  42. data/lib/perfmonger/command/record_option.rb +40 -59
  43. data/lib/perfmonger/command/server.rb +7 -2
  44. data/lib/perfmonger/command/stat.rb +2 -2
  45. data/lib/perfmonger/command/stat_option.rb +1 -1
  46. data/lib/perfmonger/command/summary.rb +11 -326
  47. data/lib/perfmonger/version.rb +1 -3
  48. data/lib/perfmonger.rb +3 -0
  49. data/misc/_perfmonger +128 -0
  50. data/misc/perfmonger-completion.bash +49 -0
  51. data/perfmonger.gemspec +6 -5
  52. data/spec/data/busy100.pgr +0 -0
  53. data/spec/fingerprint_spec.rb +35 -0
  54. data/spec/live_spec.rb +25 -0
  55. data/spec/perfmonger_spec.rb +37 -0
  56. data/spec/play_spec.rb +21 -0
  57. data/spec/plot_spec.rb +42 -0
  58. data/spec/record_spec.rb +15 -0
  59. data/spec/spec_helper.rb +33 -0
  60. data/spec/stat_spec.rb +15 -0
  61. data/spec/summary_spec.rb +51 -0
  62. data/spec/support/aruba.rb +11 -0
  63. data/wercker.yml +59 -0
  64. metadata +117 -45
  65. data/ext/perfmonger/extconf.rb +0 -19
  66. data/ext/perfmonger/perfmonger.h +0 -58
  67. data/ext/perfmonger/perfmonger_record.c +0 -754
  68. data/ext/perfmonger/sysstat/common.c +0 -627
  69. data/ext/perfmonger/sysstat/common.h +0 -207
  70. data/ext/perfmonger/sysstat/ioconf.c +0 -515
  71. data/ext/perfmonger/sysstat/ioconf.h +0 -84
  72. data/ext/perfmonger/sysstat/iostat.c +0 -1100
  73. data/ext/perfmonger/sysstat/iostat.h +0 -121
  74. data/ext/perfmonger/sysstat/libsysstat.h +0 -19
  75. data/ext/perfmonger/sysstat/mpstat.c +0 -953
  76. data/ext/perfmonger/sysstat/mpstat.h +0 -79
  77. data/ext/perfmonger/sysstat/rd_stats.c +0 -2388
  78. data/ext/perfmonger/sysstat/rd_stats.h +0 -651
  79. data/ext/perfmonger/sysstat/sysconfig.h +0 -13
  80. data/test/run-test.sh +0 -39
  81. data/test/spec/bin_spec.rb +0 -37
  82. data/test/spec/data/2devices.expected +0 -42
  83. data/test/spec/data/2devices.output +0 -42
  84. data/test/spec/spec_helper.rb +0 -20
  85. data/test/spec/summary_spec.rb +0 -193
  86. data/test/test-perfmonger.c +0 -145
  87. data/test/test.h +0 -9
@@ -1,84 +0,0 @@
1
- /*
2
- * ioconf: ioconf configuration file handling code
3
- * Original code (C) 2004 by Red Hat (Charlie Bennett <ccb@redhat.com>)
4
- *
5
- * Modified and maintained by Sebastien GODARD (sysstat <at> orange.fr)
6
- */
7
-
8
- #ifndef _IOCONF_H
9
- #define _IOCONF_H
10
-
11
- #include "sysconfig.h"
12
-
13
- #define IOC_NAMELEN 31
14
- #define IOC_DESCLEN 63
15
- #define IOC_DEVLEN 47
16
- #define IOC_MAXMINOR 2047
17
- #define IOC_LINESIZ 255
18
- #define IOC_PARTLEN 7
19
- #define IOC_FMTLEN 15
20
-
21
- #ifndef MAX_BLKDEV
22
- #define MAX_BLKDEV 255
23
- #endif
24
-
25
- #define K_NODEV "nodev"
26
-
27
- #define IS_WHOLE(maj,min) ((min % ioconf[maj]->blkp->pcount) == 0)
28
-
29
- /*
30
- * When is C going to get templates?
31
- */
32
- #define IOC_ALLOC(P,TYPE,SIZE) \
33
- do { \
34
- if (P == NULL) { \
35
- P = (TYPE *) malloc(SIZE); \
36
- if (P == NULL) { \
37
- perror("malloc"); \
38
- ioc_free(); \
39
- return 0; \
40
- } \
41
- } \
42
- } \
43
- while (0)
44
- /* That dummy while allows ';' on the line that invokes the macro... */
45
-
46
-
47
- struct blk_config {
48
- char name[IOC_NAMELEN + 1]; /* device basename */
49
- char cfmt[IOC_FMTLEN + 1]; /* controller format string */
50
- char dfmt[IOC_FMTLEN + 1]; /* disk format string */
51
- char pfmt[IOC_FMTLEN + 1]; /* partition format string */
52
- /* ctrlno is in the ioc_entry */
53
- unsigned int ctrl_explicit; /* use "cN" in name */
54
- unsigned int dcount; /* number of devices handled by this major */
55
- unsigned int pcount; /* partitions per device */
56
- char desc[IOC_DESCLEN + 1];
57
- /* disk info unit # conversion function */
58
- char *(*cconv)(unsigned int);
59
-
60
- /* extension properties (all this for initrd?) */
61
- char ext_name[IOC_NAMELEN + 1];
62
- unsigned int ext; /* flag - this is an extension record */
63
- unsigned int ext_minor; /* which minor does this apply to */
64
- };
65
-
66
- #define BLK_CONFIG_SIZE (sizeof(struct blk_config))
67
-
68
-
69
- struct ioc_entry {
70
- int live; /* is this a Direct entry? */
71
- unsigned int ctrlno; /* controller number */
72
- unsigned int basemajor; /* Major number of the template */
73
- char *desc; /* (dynamic) per-controller description */
74
- struct blk_config *blkp; /* the real info, may be a shared ref */
75
- };
76
-
77
- #define IOC_ENTRY_SIZE (sizeof(struct ioc_entry))
78
-
79
-
80
- extern int ioc_iswhole(unsigned int, unsigned int);
81
- extern char *ioc_name(unsigned int, unsigned int);
82
- extern char *transform_devmapname(unsigned int, unsigned int);
83
-
84
- #endif