search for: sset

Displaying 20 results from an estimated 27 matches for "sset".

Did you mean: set
2008 Jul 11
3
data summerization etc...
Hello, I am trying to do some fairly straightforward data summarization, i.e., the kind you would do with a pivot table in excel or by using SQL queires. I have a moderately sized data set of ~70,000 records and I am trying to compute some group averages and sum values within groups. the code example below shows how I am trying to go about doing this pti <-rnorm(70000,10) fid <-
2012 Jun 05
1
[net-next RFC PATCH] virtio_net: collect satistics and export through ethtool
..., "%s[%u]", + virtnet_stats_str_attr[i].string, cpu); + buf += ETH_GSTRING_LEN; + } + for (i = 0; i < VIRTNET_NUM_STATS; i++) { + memcpy(buf, virtnet_stats_str_attr[i].string, + ETH_GSTRING_LEN); + buf += ETH_GSTRING_LEN; + } + break; + } +} + +static int virtnet_get_sset_count(struct net_device *dev, int sset) +{ + switch (sset) { + case ETH_SS_STATS: + return VIRTNET_NUM_STATS * (num_online_cpus() + 1); + default: + return -EOPNOTSUPP; + } +} + +static void virtnet_get_ethtool_stats(struct net_device *dev, + struct ethtool_stats *stats, u64 *buf) +{ + struct...
2012 Jun 05
1
[net-next RFC PATCH] virtio_net: collect satistics and export through ethtool
..., "%s[%u]", + virtnet_stats_str_attr[i].string, cpu); + buf += ETH_GSTRING_LEN; + } + for (i = 0; i < VIRTNET_NUM_STATS; i++) { + memcpy(buf, virtnet_stats_str_attr[i].string, + ETH_GSTRING_LEN); + buf += ETH_GSTRING_LEN; + } + break; + } +} + +static int virtnet_get_sset_count(struct net_device *dev, int sset) +{ + switch (sset) { + case ETH_SS_STATS: + return VIRTNET_NUM_STATS * (num_online_cpus() + 1); + default: + return -EOPNOTSUPP; + } +} + +static void virtnet_get_ethtool_stats(struct net_device *dev, + struct ethtool_stats *stats, u64 *buf) +{ + struct...
2014 Aug 27
2
[PATCH 1/1] add selftest for virtio-net
.../* Transport features always preserved to pass to finalize_features. */ + for (i = VIRTIO_TRANSPORT_F_START; i < VIRTIO_TRANSPORT_F_END; i++) + if (device_features & (1 << i)) + set_bit(i, dev->features); + + dev->config->finalize_features(dev); +} + +static int virtnet_get_sset_count(struct net_device *netdev, int sset) +{ + switch (sset) { + case ETH_SS_TEST: + return VIRTNET_NUM_TEST; + default: + return -EOPNOTSUPP; + } +} + +static void virtnet_get_strings(struct net_device *dev, u32 stringset, u8 *buf) +{ + switch (stringset) { + case ETH_SS_TEST: + memcpy(buf, &a...
2014 Aug 27
2
[PATCH 1/1] add selftest for virtio-net
.../* Transport features always preserved to pass to finalize_features. */ + for (i = VIRTIO_TRANSPORT_F_START; i < VIRTIO_TRANSPORT_F_END; i++) + if (device_features & (1 << i)) + set_bit(i, dev->features); + + dev->config->finalize_features(dev); +} + +static int virtnet_get_sset_count(struct net_device *netdev, int sset) +{ + switch (sset) { + case ETH_SS_TEST: + return VIRTNET_NUM_TEST; + default: + return -EOPNOTSUPP; + } +} + +static void virtnet_get_strings(struct net_device *dev, u32 stringset, u8 *buf) +{ + switch (stringset) { + case ETH_SS_TEST: + memcpy(buf, &a...
2011 Jun 19
1
[LLVMdev] RFC: Integer saturation intrinsics
...them otherwise.  It wouldn't be >> especially hard to allow target-specific transforms on IR... > > It's easy to expand these intrinsics in legalizer time. Also llvm is already generating inferior code for these patterns for ARM and x86. We also have to consider whether forming sset will require substantial changes to other passes; thinking about it, it won't be too bad here. I still don't see the point of a usat intrinsic; we ought to already handle constructs that should form into usat effectively. -Eli
2012 Jun 06
2
[V2 RFC net-next PATCH 1/2] virtio_net: convert the statistics into array
Currently, we store the statistics in the independent fields of virtnet_stats, this is not scalable when we want to add more counters. As suggested by Michael, this patch convert it to an array and use the enum as the index to access them. Signed-off-by: Jason Wang <jasowang at redhat.com> --- drivers/net/virtio_net.c | 30 +++++++++++++++++------------- 1 files changed, 17
2012 Jun 06
2
[V2 RFC net-next PATCH 1/2] virtio_net: convert the statistics into array
Currently, we store the statistics in the independent fields of virtnet_stats, this is not scalable when we want to add more counters. As suggested by Michael, this patch convert it to an array and use the enum as the index to access them. Signed-off-by: Jason Wang <jasowang at redhat.com> --- drivers/net/virtio_net.c | 30 +++++++++++++++++------------- 1 files changed, 17
2014 Sep 05
1
[PATCH 1/1] add selftest for virtio-net v1.0
...+ if (status & VIRTIO_CONFIG_S_DRIVER_OK) { + u8 test_status = status & ~VIRTIO_CONFIG_S_DRIVER_OK; + + dev->config->set_status(dev, test_status); + } + *data = virtio_feature_negotiate(dev); + dev->config->set_status(dev, status); + return *data; +} + +static int virtnet_get_sset_count(struct net_device *netdev, int sset) +{ + switch (sset) { + case ETH_SS_TEST: + return VIRTNET_NUM_TEST; + default: + return -EOPNOTSUPP; + } +} + +static void virtnet_get_strings(struct net_device *dev, u32 stringset, u8 *buf) +{ + switch (stringset) { + case ETH_SS_TEST: + memcpy(buf, &a...
2014 Sep 05
1
[PATCH 1/1] add selftest for virtio-net v1.0
...+ if (status & VIRTIO_CONFIG_S_DRIVER_OK) { + u8 test_status = status & ~VIRTIO_CONFIG_S_DRIVER_OK; + + dev->config->set_status(dev, test_status); + } + *data = virtio_feature_negotiate(dev); + dev->config->set_status(dev, status); + return *data; +} + +static int virtnet_get_sset_count(struct net_device *netdev, int sset) +{ + switch (sset) { + case ETH_SS_TEST: + return VIRTNET_NUM_TEST; + default: + return -EOPNOTSUPP; + } +} + +static void virtnet_get_strings(struct net_device *dev, u32 stringset, u8 *buf) +{ + switch (stringset) { + case ETH_SS_TEST: + memcpy(buf, &a...
2014 Aug 27
0
[PATCH 1/1] add selftest for virtio-net
...ince spec suggest to do the feature negotiation after DRIVER bit but before DRIVER_OK bit. And this function duplicates some of the code from virtio core, may consider a method to share between them. Another issue is the test never fail which needs more thought. > + > +static int virtnet_get_sset_count(struct net_device *netdev, int sset) > +{ > + switch (sset) { > + case ETH_SS_TEST: > + return VIRTNET_NUM_TEST; > + default: > + return -EOPNOTSUPP; > + } > +} > + > +static void virtnet_get_strings(struct net_device *dev, u32 stringset, u8 *buf) > +{ >...
2018 Jan 17
1
[PATCH v2 net-next] virtio_net: Add ethtool stats
...} + } + + for (i = 0; i < vi->curr_queue_pairs; i++) { + for (j = 0; j < VIRTNET_SQ_STATS_LEN; j++) { + snprintf(p, ETH_GSTRING_LEN, "tx_queue_%u_%s", + i, virtnet_sq_stats_desc[j].desc); + p += ETH_GSTRING_LEN; + } + } + break; + } +} + +static int virtnet_get_sset_count(struct net_device *dev, int sset) +{ + struct virtnet_info *vi = netdev_priv(dev); + + switch (sset) { + case ETH_SS_STATS: + return vi->curr_queue_pairs * (VIRTNET_RQ_STATS_LEN + + VIRTNET_SQ_STATS_LEN); + default: + return -EOPNOTSUPP; + } +} + +static void virtnet_get_ethto...
2017 Dec 20
4
[PATCH net-next] virtio_net: Add ethtool stats
...s", i); + p += ETH_GSTRING_LEN; + } + for (i = 0; i < vi->curr_queue_pairs; i++) { + sprintf(p, "tx_queue_%u_packets", i); + p += ETH_GSTRING_LEN; + sprintf(p, "tx_queue_%u_bytes", i); + p += ETH_GSTRING_LEN; + } + break; + } +} + +static int virtnet_get_sset_count(struct net_device *dev, int sset) +{ + struct virtnet_info *vi = netdev_priv(dev); + + switch (sset) { + case ETH_SS_STATS: + return VIRTNET_GSTATS_LEN + vi->curr_queue_pairs * 4; + default: + return -EOPNOTSUPP; + } +} + +static void virtnet_get_ethtool_stats(struct net_device *dev, +...
2017 Dec 20
4
[PATCH net-next] virtio_net: Add ethtool stats
...s", i); + p += ETH_GSTRING_LEN; + } + for (i = 0; i < vi->curr_queue_pairs; i++) { + sprintf(p, "tx_queue_%u_packets", i); + p += ETH_GSTRING_LEN; + sprintf(p, "tx_queue_%u_bytes", i); + p += ETH_GSTRING_LEN; + } + break; + } +} + +static int virtnet_get_sset_count(struct net_device *dev, int sset) +{ + struct virtnet_info *vi = netdev_priv(dev); + + switch (sset) { + case ETH_SS_STATS: + return VIRTNET_GSTATS_LEN + vi->curr_queue_pairs * 4; + default: + return -EOPNOTSUPP; + } +} + +static void virtnet_get_ethtool_stats(struct net_device *dev, +...
2011 Jun 19
0
[LLVMdev] RFC: Integer saturation intrinsics
On Jun 17, 2011, at 5:49 PM, Eli Friedman wrote: > On Fri, Jun 17, 2011 at 4:50 PM, Eli Friedman <eli.friedman at gmail.com> wrote: >>>>> The plan is to form calls to these intrinsics in InstCombine. Legalizer can expand these intrinsics if they are not legal. The expansion should be fairly straight forward and produce code that is at least as good as what LLVM is
2011 Jun 18
2
[LLVMdev] RFC: Integer saturation intrinsics
On Fri, Jun 17, 2011 at 4:50 PM, Eli Friedman <eli.friedman at gmail.com> wrote: >>>> The plan is to form calls to these intrinsics in InstCombine. Legalizer can expand these intrinsics if they are not legal. The expansion should be fairly straight forward and produce code that is at least as good as what LLVM is currently generating for these code sequence. >>>>
2003 Feb 12
5
Encode on fly from device?
Hello, I'm looking for ideas here. I'm sure it's easy, but cant quite get what I need. I am looking for a way to encode everything from the soundcard into a .ogg, on the fly. Basically I want to be able to record and convert directly to a compressed file. Since this will be running constantly, I would also like to be able to listen to the file during this time. I know oggenc can use
2020 Mar 25
3
[PATCH libnbd v4] Add Go language bindings (golang) (RHBZ#1814538).
Now runs a complete set of tests, notably including the AIO test. File descriptors are passed in and out as plain ints (instead of *os.File) for a couple of reasons: (1) We have to pass the plain int to syscall.Select. (2) Turning an fd into an os.File causes golang to set the blocking flag which is deeply unhelpful. Rich.
2007 Apr 11
22
any pointers for starting a windows port?
Hello I am entertaining the idea of putting some time and effort into making Facter and Puppet run on MS Windows. Call me crazy ... Does anyone know anything about the issues that I''m likely to face? What are the major stumbling blocks? Initially I''d be happy just getting File to work, this would be of tremendous value. I''m guessing that Facter will require the
2009 Oct 06
1
[PATCH 2.6.32-rc3] net: VMware virtual Ethernet NIC driver: vmxnet3
...m spacing between datatype and membername in structures - removed some noisy printks, eliminated some BUG_ONs - corrected arguments of kcalloc - used pc_request_selected_regions, pci_enable_dev_mem - elminated not-so-useful wrapper functions, used eth_op_ functions instead - used strlcpy - used get_sset_counts instead of get_stats_count - used net_device_stats from struct net_device Please review the patch and provide your feedback/comments for upstreaming. Thanking you ->Shreyas --- diff --git a/MAINTAINERS b/MAINTAINERS index 09a2028..0509f26 100644 --- a/MAINTAINERS +++ b/MAINTAINERS...