search for: 41,15

Displaying 20 results from an estimated 28 matches for "41,15".

Did you mean: 41,11
2011 Sep 01
4
[PATCH] xen,credit1: Add variable timeslice
...the timeslice of the credit1 scheduler. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> diff -r 4a4882df5649 -r 782284c5b1bc xen/common/sched_credit.c --- a/xen/common/sched_credit.c Wed Aug 31 15:23:49 2011 +0100 +++ b/xen/common/sched_credit.c Thu Sep 01 16:29:50 2011 +0100 @@ -41,15 +41,9 @@ */ #define CSCHED_DEFAULT_WEIGHT 256 #define CSCHED_TICKS_PER_TSLICE 3 -#define CSCHED_TICKS_PER_ACCT 3 -#define CSCHED_MSECS_PER_TICK 10 -#define CSCHED_MSECS_PER_TSLICE \ - (CSCHED_MSECS_PER_TICK * CSCHED_TICKS_PER_TSLICE) +/* Default timeslice: 30ms *...
2010 Oct 14
2
[LLVMdev] LLVM use of C++ exceptions and RTTI
On Thu, Oct 14, 2010 at 4:09 PM, Duncan Sands <baldrick at free.fr> wrote: > Hi Francois, > >> In that case, RTTI and exception should also be disabled from CMake >> generated projects right? >> Currently they are enabled all over my MSVC projects. > > I'm not sure what you are asking.  The goal is for LLVM to not require > RTTI or exception handling.
2014 Nov 20
2
[PATCH 0/2] appliance: When running systemd-tmpfiles, pass --boot
https://bugzilla.redhat.com/show_bug.cgi?id=1165785 Since the --boot option is relatively new (added 2013-12), I suspect this will break older versions of systemd. However it should be fine for all currently supported versions of Fedora. Rich.
2019 Apr 23
0
[nbdkit PATCH 3/4] filters: Utilize ACQUIRE_LOCK_FOR_CURRENT_SCOPE
...rcdir)/filters/filters.syms +nbdkit_log_filter_la_LIBADD = \ + $(top_builddir)/common/utils/libutils.la if HAVE_POD diff --git a/filters/readahead/Makefile.am b/filters/readahead/Makefile.am index 0e7a4a8..54adfb8 100644 --- a/filters/readahead/Makefile.am +++ b/filters/readahead/Makefile.am @@ -41,12 +41,15 @@ nbdkit_readahead_filter_la_SOURCES = \ nbdkit_readahead_filter_la_CPPFLAGS = \ -I$(top_srcdir)/include \ - -I$(top_srcdir)/common/include + -I$(top_srcdir)/common/include \ + -I$(top_srcdir)/common/utils nbdkit_readahead_filter_la_CFLAGS = \ $(WARNINGS_CFLAGS) nbdkit_readahead_...
2019 Apr 23
0
[nbdkit PATCH 2/4] filters: Utilize CLEANUP_EXTENTS_FREE
...; return 0; - - error: - nbdkit_extents_free (extents2); - return -1; } static struct nbdkit_filter filter = { diff --git a/filters/partition/partition.c b/filters/partition/partition.c index ab692ba..a89dbec 100644 --- a/filters/partition/partition.c +++ b/filters/partition/partition.c @@ -41,6 +41,7 @@ #include <nbdkit-filter.h> #include "byte-swapping.h" +#include "cleanup.h" #include "partition.h" @@ -229,7 +230,7 @@ partition_extents (struct nbdkit_next_ops *next_ops, void *nxdata, { struct handle *h = handle; size_t i; - struct nbdk...
2013 May 16
2
[PATCH] virtio-net: Reporting traffic queue distribution statistics through ethtool
...--- drivers/net/virtio_net.c | 157 +++++++++++++++++++++++++++++++++++++--------- 1 files changed, 128 insertions(+), 29 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 3c23fdc..3c58c52 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -41,15 +41,46 @@ module_param(gso, bool, 0444); #define VIRTNET_DRIVER_VERSION "1.0.0" -struct virtnet_stats { - struct u64_stats_sync tx_syncp; +struct virtnet_rx_stats { struct u64_stats_sync rx_syncp; - u64 tx_bytes; + u64 rx_packets; + u64 rx_bytes; +}; + +struct virtnet_tx_stats {...
2013 May 16
2
[PATCH] virtio-net: Reporting traffic queue distribution statistics through ethtool
...--- drivers/net/virtio_net.c | 157 +++++++++++++++++++++++++++++++++++++--------- 1 files changed, 128 insertions(+), 29 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 3c23fdc..3c58c52 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -41,15 +41,46 @@ module_param(gso, bool, 0444); #define VIRTNET_DRIVER_VERSION "1.0.0" -struct virtnet_stats { - struct u64_stats_sync tx_syncp; +struct virtnet_rx_stats { struct u64_stats_sync rx_syncp; - u64 tx_bytes; + u64 rx_packets; + u64 rx_bytes; +}; + +struct virtnet_tx_stats {...
2019 Apr 23
8
[nbdkit PATCH 0/4] Start using cleanup macros in filters/plugins
There's more that can be done (in particular, use of CLEANUP_FREE), but this is enough to at least see if I'm on the right track. I couldn't figure out an obvious difference between common/include and common/utils, but it looks like the former is for things that are inlineable via .h only, while the latter is when you need to link in a convenience library, so this landed in the
2013 Oct 25
2
[PATCH] support SO_REUSEPORT on new listeners (:reuseport)
...efault: false (unset) + # # [:tries => Integer] # # Times to retry binding a socket if it is already in use diff --git a/lib/unicorn/socket_helper.rb b/lib/unicorn/socket_helper.rb index 18b0be7..2701d58 100644 --- a/lib/unicorn/socket_helper.rb +++ b/lib/unicorn/socket_helper.rb @@ -41,6 +41,15 @@ module Unicorn # do not send out partial frames (Linux) TCP_CORK = 3 unless defined?(TCP_CORK) + + # Linux got SO_REUSEPORT in 3.9, BSDs have had it for ages + unless defined?(SO_REUSEPORT) + if RUBY_PLATFORM =~ /(?:alpha|mips|parisc|sparc)/ + S...
2019 Apr 23
0
[nbdkit PATCH 4/4] plugins: Utilize ACQUIRE_LOCK_FOR_CURRENT_SCOPE
...lti_conn (void *handle) static int memory_pread (void *handle, void *buf, uint32_t count, uint64_t offset) { - pthread_mutex_lock (&lock); + ACQUIRE_LOCK_FOR_CURRENT_SCOPE (&lock); sparse_array_read (sa, buf, count, offset); - pthread_mutex_unlock (&lock); return 0; } @@ -141,21 +141,16 @@ memory_pread (void *handle, void *buf, uint32_t count, uint64_t offset) static int memory_pwrite (void *handle, const void *buf, uint32_t count, uint64_t offset) { - int r; - - pthread_mutex_lock (&lock); - r = sparse_array_write (sa, buf, count, offset); - pthread_mutex_un...
2023 May 30
2
[libnbd PATCH v3 04/22] states: Prepare to send 64-bit requests
...ting variable that never exceeds 2*MAX_REQUEST_SIZE). There is also pre-series: generator/states-issue-command.c: h->request.count = htobe32 (cmd->count); which is specifically updated in this patch to cover extended headers. > > +++ b/generator/states-issue-command.c > > @@ -41,15 +41,24 @@ ISSUE_COMMAND.START: > > return 0; > > } > > > > - h->request.magic = htobe32 (NBD_REQUEST_MAGIC); > > - h->request.flags = htobe16 (cmd->flags); > > - h->request.type = htobe16 (cmd->type); > > - h->request.hand...
2019 Apr 24
0
[nbdkit PATCH 4/4] filters: Check for mutex failures
...t readonly) return NULL; } - pthread_mutex_lock (&lock); + ACQUIRE_LOCK_FOR_CURRENT_SCOPE (&lock); h->connection = ++connections; - pthread_mutex_unlock (&lock); h->id = 0; return h; } diff --git a/filters/rate/rate.c b/filters/rate/rate.c index 978cdc3..cf03541 100644 --- a/filters/rate/rate.c +++ b/filters/rate/rate.c @@ -222,9 +222,8 @@ maybe_adjust (const char *file, struct bucket *bucket, pthread_mutex_t *lock) if (new_rate == -1) return; - pthread_mutex_lock (lock); + ACQUIRE_LOCK_FOR_CURRENT_SCOPE (lock); old_rate = bucket_adjust_rate...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...; + + /* The last page offset read into the mapping's page_tree */ + unsigned long last_scan_page_array; + + /* The last time a page was reclaimed */ + unsigned long last_reclaim; +}; + +/* Magic number used for the skeleton filesystem in the call to mount_pseudo */ +#define BALLOONFS_MAGIC 0x42414c4c + +static struct virtio_device_id id_table[] = { + { VIRTIO_ID_FILE_BALLOON, VIRTIO_DEV_ANY_ID }, + { 0 }, +}; + +/* + * The skeleton filesystem contains a single inode, held by the structure below. + * Using the containing structure below allows easy access to the struct + * virtio_balloon. +...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...; + + /* The last page offset read into the mapping's page_tree */ + unsigned long last_scan_page_array; + + /* The last time a page was reclaimed */ + unsigned long last_reclaim; +}; + +/* Magic number used for the skeleton filesystem in the call to mount_pseudo */ +#define BALLOONFS_MAGIC 0x42414c4c + +static struct virtio_device_id id_table[] = { + { VIRTIO_ID_FILE_BALLOON, VIRTIO_DEV_ANY_ID }, + { 0 }, +}; + +/* + * The skeleton filesystem contains a single inode, held by the structure below. + * Using the containing structure below allows easy access to the struct + * virtio_balloon. +...
2012 Jul 25
0
No subject
...y; > >> + > >> + /* The last time a page was reclaimed */ > >> + unsigned long last_reclaim; > >> +}; > >> + > >> +/* Magic number used for the skeleton filesystem in the call to mount_pseudo */ > >> +#define BALLOONFS_MAGIC 0x42414c4c > >> + > >> +static struct virtio_device_id id_table[] = { > >> + { VIRTIO_ID_FILE_BALLOON, VIRTIO_DEV_ANY_ID }, > >> + { 0 }, > >> +}; > >> + > >> +/* > >> + * The skeleton filesystem contains a single inode, held...
2012 Jul 25
0
No subject
...y; > >> + > >> + /* The last time a page was reclaimed */ > >> + unsigned long last_reclaim; > >> +}; > >> + > >> +/* Magic number used for the skeleton filesystem in the call to mount_pseudo */ > >> +#define BALLOONFS_MAGIC 0x42414c4c > >> + > >> +static struct virtio_device_id id_table[] = { > >> + { VIRTIO_ID_FILE_BALLOON, VIRTIO_DEV_ANY_ID }, > >> + { 0 }, > >> +}; > >> + > >> +/* > >> + * The skeleton filesystem contains a single inode, held...
2019 Apr 24
7
[nbdkit PATCH 0/4] More mutex sanity checking
...s/cow/cow.c | 19 +++++++--------- filters/error/error.c | 7 +++--- filters/log/log.c | 3 +-- filters/rate/rate.c | 10 ++++----- filters/readahead/readahead.c | 3 +-- filters/stats/stats.c | 18 +++++---------- filters/truncate/truncate.c | 41 +++++++++++----------------------- plugins/file/file.c | 3 +-- server/connections.c | 20 ++++++++++------- server/locks.c | 42 ++++++++++++++++++++++------------- filters/error/Makefile.am | 5 ++++- 12 files changed, 92 insertions(+), 102 deletions(-) -...
2010 Sep 09
2
[PATCH]: add libxl python binding
...t;domain", unsigned_integer), ("vdevfn", unsigned_integer), ("vfunc_mask", unsigned_integer), diff -r b19856f6dd76 tools/libxl/libxl_pci.c --- a/tools/libxl/libxl_pci.c Thu Sep 09 09:24:24 2010 +0100 +++ b/tools/libxl/libxl_pci.c Thu Sep 09 12:06:50 2010 +0100 @@ -41,6 +41,15 @@ #define PCI_BDF_SHORT "%02x:%02x.%01x" #define PCI_BDF_VDEVFN "%04x:%02x:%02x.%01x@%02x" +static unsigned int pcidev_value(libxl_device_pci *pcidev) +{ + return ((pcidev->reg & 0x3f) << 24) | + ((pcidev->func & 0x...
2019 Nov 02
13
[PATCH v2 0/9] drm/nouveau: Various fixes for GP10B
From: Thierry Reding <treding at nvidia.com> Hi Ben, here's a revised subset of the patches I had sent out a couple of weeks ago. I've reworked the BAR2 accesses in the way that you had suggested, which at least for GP10B turned out to be fairly trivial to do. I have not looked in detail at this for GV11B yet, but a cursory look showed that BAR2 is accessed in more places, so the
2019 Dec 09
11
[PATCH v3 0/9] drm/nouveau: Various fixes for GP10B
From: Thierry Reding <treding at nvidia.com> Hi Ben, here's a revised subset of the patches I had sent out a couple of weeks ago. I've reworked the BAR2 accesses in the way that you had suggested, which at least for GP10B turned out to be fairly trivial to do. I have not looked in detail at this for GV11B yet, but a cursory look showed that BAR2 is accessed in more places, so the