Displaying 7 results from an estimated 7 matches for "_struct".
Did you mean:
rstruct
2013 May 16
2
[PATCH] virtio-net: Reporting traffic queue distribution statistics through ethtool
..._stats {
+ struct u64_stats_sync tx_syncp;
u64 tx_packets;
+ u64 tx_bytes;
+};
- u64 rx_bytes;
- u64 rx_packets;
+struct virtnet_ethtool_stats {
+ char desc[ETH_GSTRING_LEN];
+ int type;
+ int size;
+ int offset;
+};
+
+enum {VIRTNET_STATS_TX, VIRTNET_STATS_RX};
+
+#define VIRTNET_RX_STATS_INFO(_struct, _field) \
+ {#_field, VIRTNET_STATS_RX, FIELD_SIZEOF(_struct, _field), \
+ offsetof(_struct, _field)}
+
+#define VIRTNET_TX_STATS_INFO(_struct, _field) \
+ {#_field, VIRTNET_STATS_TX, FIELD_SIZEOF(_struct, _field), \
+ offsetof(_struct, _field)}
+
+static const struct virtnet_ethtool_stats virtnet...
2013 May 16
2
[PATCH] virtio-net: Reporting traffic queue distribution statistics through ethtool
..._stats {
+ struct u64_stats_sync tx_syncp;
u64 tx_packets;
+ u64 tx_bytes;
+};
- u64 rx_bytes;
- u64 rx_packets;
+struct virtnet_ethtool_stats {
+ char desc[ETH_GSTRING_LEN];
+ int type;
+ int size;
+ int offset;
+};
+
+enum {VIRTNET_STATS_TX, VIRTNET_STATS_RX};
+
+#define VIRTNET_RX_STATS_INFO(_struct, _field) \
+ {#_field, VIRTNET_STATS_RX, FIELD_SIZEOF(_struct, _field), \
+ offsetof(_struct, _field)}
+
+#define VIRTNET_TX_STATS_INFO(_struct, _field) \
+ {#_field, VIRTNET_STATS_TX, FIELD_SIZEOF(_struct, _field), \
+ offsetof(_struct, _field)}
+
+static const struct virtnet_ethtool_stats virtnet...
2015 May 21
2
[nbdkit python]: unable to locate modules
I'm working on a python plugin for nbdkit that treats Google Cloud
Storage as a block device. I have a library, gcs.py, that implements
simple commands: list, get, put, delete; source is here:
https://github.com/wspeirs/cldblkdev/blob/master/gcs.py
When I attempt to run nbdkit I get the following error:
nbdkit python script=/home/wspeirs/src/cldblkdev/cldblkdev.py
Traceback (most recent call
2015 May 21
0
Re: [nbdkit python]: unable to locate modules
...ot;/usr/lib64/python2.7/json/__init__.py", line 108, in <module>
from .decoder import JSONDecoder
File "/usr/lib64/python2.7/json/decoder.py", line 5, in <module>
import struct
File "/usr/lib64/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: /usr/lib64/python2.7/lib-dynload/_struct.so: undefined symbol: PyFloat_Type
nbdkit: error: /tmp/gcs.py: error running this script
A smallest possible reproducer is to have a file that has a single line:
import json
Rich.
--
Richard Jones, Virtualization Group, Red Hat h...
2015 May 21
2
Re: [nbdkit python]: unable to locate modules
...son/__init__.py", line 108, in <module>
> from .decoder import JSONDecoder
> File "/usr/lib64/python2.7/json/decoder.py", line 5, in <module>
> import struct
> File "/usr/lib64/python2.7/struct.py", line 1, in <module>
> from _struct import *
> ImportError: /usr/lib64/python2.7/lib-dynload/_struct.so: undefined symbol: PyFloat_Type
> nbdkit: error: /tmp/gcs.py: error running this script
>
> A smallest possible reproducer is to have a file that has a single line:
>
> import json
I can fix it (for my simple...
2008 Jul 01
17
Memory leak scripts
Hola, I am trying to isolate the memory leak I suspect in a mailman
installation ? I found:
http://blogs.sun.com/sanjeevb/date/200506
It gives an error:
god at irt-smtp-02:~ 9:21am 65 # ./memleak.d 10312
dtrace: failed to compile script ./memleak.d: line 3: probe description
pid10312:libc.so.1:malloc:entry does not match any probes
I am on SunOS 5.10 Generic_127112-07 i86pc i386 i86pc
Are
2010 May 17
0
strace log
...\0\0\0\0\0\0\0\0\3\0\0\0@\0\0\0sk\0\0\0d\0\0"...,
4096) = 3684
fstat(7, {st_mode=S_IFREG|0644, st_size=3684, ...}) = 0
read(7, ""..., 4096) = 0
close(7) = 0
munmap(0x7f731ad05000, 4096) = 0
stat("/usr/lib/xen-3.2-1/bin/_struct", 0x7ffffffec7f0) = -1 ENOENT (No
such file or directory)
open("/usr/lib/xen-3.2-1/bin/_struct.so", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/xen-3.2-1/bin/_structmodule.so", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/lib/xen-3....