darshan-ruby 3.1.1.1 → 3.1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9380f68e1e53b12918ce4ba9e3258d2e20f8534c
4
- data.tar.gz: 6d75c01826d8f6a29fe3edda3afb04f7aea45aef
3
+ metadata.gz: 69c95e4a57639a0553d084a0c178fb5dcadf32af
4
+ data.tar.gz: 04f9df843f9f6f9c3c7fd65b232584aa2f2bf3ad
5
5
  SHA512:
6
- metadata.gz: 9257397a634d9913b57a94fce91fe435bf3f795e473b7dcd1dce111d76a97f3ea0da24cb761752e0b88fee39aa485d70ca5b48238201ccb2ef76235afac1d2c4
7
- data.tar.gz: b6da20235ce6b10b24e3a97db57d0e99a43beb536df390a287eb44583ee0a59d39d393daaad77033636e91c311d384d143790cbce6d4d90fb921193a041faeb8
6
+ metadata.gz: 6df17c156006d7bf4e3d4882bcbb2c6528675c23f02264fa224d519f04ee413a474d261a7c6024e49770222547e4b11ac28cdff1dbd8e11ecbcd2639f105d54e
7
+ data.tar.gz: 30d5c834cfe0c1ca7864cc15180c7656ccfa249dd365232bc53a6e6d16f28fcc362f3321feef962059b5d6c12cdec849ba6ca73e5eec18b36af41b9a153bcf4f
@@ -212,6 +212,12 @@ static VALUE rb_darshan_next_record(VALUE self)
212
212
  case DARSHAN_LUSTRE_MOD:
213
213
  res = Darshan3rb_get_lustre_record(fd,&rec_id);
214
214
  break;
215
+ case DXT_POSIX_MOD:
216
+ res = Darshan3rb_get_dxt_posix_record(fd,&rec_id);
217
+ break;
218
+ case DXT_MPIIO_MOD:
219
+ res = Darshan3rb_get_dxt_mpiio_record(fd,&rec_id);
220
+ break;
215
221
  }
216
222
 
217
223
  if(res == Qnil) return Qnil;
@@ -247,6 +253,7 @@ void Init_Darshan3rb() {
247
253
  Darshan3rb_init_bgq();
248
254
  Darshan3rb_init_stdio();
249
255
  Darshan3rb_init_lustre();
256
+ Darshan3rb_init_dxt();
250
257
 
251
258
  rb_define_method(cDarshanLogFile,"next_module",
252
259
  rb_darshan_next_module,0);
@@ -17,5 +17,6 @@
17
17
  #include "bgq-module.h"
18
18
  #include "lustre-module.h"
19
19
  #include "stdio-module.h"
20
+ #include "dxt-module.h"
20
21
 
21
22
  #endif
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Copyright (C) 2015 University of Chicago.
3
+ * See COPYRIGHT notice in top-level directory.
4
+ *
5
+ */
6
+
7
+ #include "darshan-ruby.h"
8
+
9
+ extern VALUE cDarshanRecord;
10
+ extern VALUE mDarshan;
11
+
12
+ VALUE cDarshanDXTRecord;
13
+ VALUE mDarshanDXT;
14
+
15
+ static VALUE Darshan3rb_dxt_get_rank(VALUE self)
16
+ {
17
+ struct dxt_file_record* c_record = NULL;
18
+ Data_Get_Struct(self,struct dxt_file_record, c_record);
19
+ if(c_record) return LL2NUM(c_record->base_rec.rank);
20
+ else return Qnil;
21
+ }
22
+
23
+ static VALUE Darshan3rb_dxt_get_hostname(VALUE self)
24
+ {
25
+ struct dxt_file_record* c_record = NULL;
26
+ Data_Get_Struct(self,struct dxt_file_record, c_record);
27
+ if(c_record) return rb_str_new2(c_record->hostname);
28
+ else return Qnil;
29
+ }
30
+
31
+ static VALUE Darshan3rb_dxt_get_write_count(VALUE self)
32
+ {
33
+ struct dxt_file_record* c_record = NULL;
34
+ Data_Get_Struct(self,struct dxt_file_record, c_record);
35
+ if(c_record) return LL2NUM(c_record->write_count);
36
+ else return Qnil;
37
+ }
38
+
39
+ static VALUE Darshan3rb_dxt_get_read_count(VALUE self)
40
+ {
41
+ struct dxt_file_record* c_record = NULL;
42
+ Data_Get_Struct(self,struct dxt_file_record, c_record);
43
+ if(c_record) return LL2NUM(c_record->read_count);
44
+ else return Qnil;
45
+ }
46
+
47
+ void Darshan3rb_init_dxt()
48
+ {
49
+ mDarshanDXT = rb_define_module_under(mDarshan,"DXT");
50
+
51
+ cDarshanDXTRecord = rb_define_class_under(mDarshanDXT,"Record",cDarshanRecord);
52
+ rb_define_method(cDarshanDXTRecord,"rank",Darshan3rb_dxt_get_rank,0);
53
+ rb_define_method(cDarshanDXTRecord,"hostname",Darshan3rb_dxt_get_hostname,0);
54
+ rb_define_method(cDarshanDXTRecord,"write_count",Darshan3rb_dxt_get_write_count,0);
55
+ rb_define_method(cDarshanDXTRecord,"read_count",Darshan3rb_dxt_get_read_count,0);
56
+ }
57
+
58
+ VALUE Darshan3rb_get_dxt_posix_record(darshan_fd fd, darshan_record_id* rec_id)
59
+ {
60
+ struct dxt_file_record* c_record = NULL;
61
+ int r = mod_logutils[DXT_POSIX_MOD]->log_get_record(fd, (void**)&c_record);
62
+ if(r != 1) return Qnil;
63
+ *rec_id = c_record->base_rec.id;
64
+ VALUE rb_record = Data_Wrap_Struct(cDarshanDXTRecord, NULL , free, c_record);
65
+ return rb_record;
66
+ }
67
+
68
+ VALUE Darshan3rb_get_dxt_mpiio_record(darshan_fd fd, darshan_record_id* rec_id)
69
+ {
70
+ struct dxt_file_record* c_record = NULL;
71
+ int r = mod_logutils[DXT_MPIIO_MOD]->log_get_record(fd, (void**)&c_record);
72
+ if(r != 1) return Qnil;
73
+ *rec_id = c_record->base_rec.id;
74
+ VALUE rb_record = Data_Wrap_Struct(cDarshanDXTRecord, NULL , free, c_record);
75
+ return rb_record;
76
+ }
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Copyright (C) 2015 University of Chicago.
3
+ * See COPYRIGHT notice in top-level directory.
4
+ *
5
+ */
6
+
7
+ #include <ruby.h>
8
+
9
+ void Darshan3rb_init_dxt();
10
+
11
+ VALUE Darshan3rb_get_dxt_posix_record(darshan_fd fd, darshan_record_id* id);
12
+
13
+ VALUE Darshan3rb_get_dxt_mpiio_record(darshan_fd fd, darshan_record_id* id);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: darshan-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1.1
4
+ version: 3.1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu Dorier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-01 00:00:00.000000000 Z
11
+ date: 2017-02-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby binding to ANL's Darshan library for HPC I/O tracing and analysis
14
14
  email: mdorier@anl.gov
@@ -23,6 +23,8 @@ files:
23
23
  - ext/darshan/bgq-module.h
24
24
  - ext/darshan/darshan-ruby.c
25
25
  - ext/darshan/darshan-ruby.h
26
+ - ext/darshan/dxt-module.c
27
+ - ext/darshan/dxt-module.h
26
28
  - ext/darshan/extconf.rb
27
29
  - ext/darshan/hdf5-module.c
28
30
  - ext/darshan/hdf5-module.h
@@ -39,7 +41,7 @@ files:
39
41
  - lib/darshan.rb
40
42
  homepage: http://www.mcs.anl.gov/research/projects/darshan/
41
43
  licenses:
42
- - GOVERNMENT LICENSE
44
+ - Nonstandard
43
45
  metadata: {}
44
46
  post_install_message:
45
47
  rdoc_options: []
@@ -61,5 +63,5 @@ rubyforge_project: nowarning
61
63
  rubygems_version: 2.5.1
62
64
  signing_key:
63
65
  specification_version: 4
64
- summary: Ruby binding to Darshan version 3.1.1 and above
66
+ summary: Ruby binding to Darshan version 3.1.3 and above
65
67
  test_files: []