Displaying 20 results from an estimated 3186 matches for "uint64_t".
2008 Jun 11
0
[LLVMdev] some warning from VS2005 (requested by gabor)
Hi,
Some random sample of VS warning:
Lot of 64 bits conversions:
AsmPrinter.cpp
..\..\lib\CodeGen\AsmPrinter.cpp(277) : warning C4244: 'initializing' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\AsmPrinter.cpp(614) : warning C4244: 'argument' :
conversion from 'uint64_t' to 'int', possible loss of data
..\..\lib\CodeGen\AsmPrinter.cpp(894) : warning C4244: 'initializing' :
conversion fro...
2017 Oct 26
1
[PATCH for-next 7/9] coverage: introduce support for llvm profiling
...E POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include <xen/errno.h>
+#include <xen/guest_access.h>
+#include <xen/types.h>
+#include <xen/coverage.h>
+
+#ifndef __clang__
+#error "LLVM coverage selected without clang compiler"
+#endif
+
+#define LLVM_PROFILE_MAGIC_64 (uint64_t)255 << 56 | (uint64_t)'l' << 48 | \
+ (uint64_t)'p' << 40 | (uint64_t)'r' << 32 | (uint64_t)'o' << 24 | \
+ (uint64_t)'f' << 16 | (uint64_t)'r' << 8 | (uint64_t)129
+#define LLVM_PROFILE_MAGIC_32...
2007 Mar 15
20
C''mon ARC, stay small...
...mmap(file), read memory segment, unmap, close.
Tweaked the arc size down via mdb to 1GB. I used that value because
c_min was also 1GB, and I was not sure if c_max could be larger than
c_min....Anyway, I set c_max to 1GB.
After a workload run....:
> arc::print -tad
{
. . .
ffffffffc02e29e8 uint64_t size = 0t3099832832
ffffffffc02e29f0 uint64_t p = 0t16540761088
ffffffffc02e29f8 uint64_t c = 0t1070318720
ffffffffc02e2a00 uint64_t c_min = 0t1070318720
ffffffffc02e2a08 uint64_t c_max = 0t1070318720
. . .
"size" is at 3GB, with c_max at 1GB.
What gives? I''m lookin...
2013 Dec 06
0
[Patch v2] xen/tmem: Fix uses of unmatched __map_domain_page()
...{
- void *p = __map_domain_page(pfp);
+ const uint8_t *p = __map_domain_page(pfp);
+ uint8_t byte = p[0];
- return (uint8_t)(*(char *)p);
+ unmap_domain_page(p);
+
+ return byte;
}
static inline int tmem_page_cmp(struct page_info *pfp1, struct page_info *pfp2)
{
- const uint64_t *p1 = (uint64_t *)__map_domain_page(pfp1);
- const uint64_t *p2 = (uint64_t *)__map_domain_page(pfp2);
- int i;
-
- // FIXME: code in assembly?
-ASSERT(p1 != NULL);
-ASSERT(p2 != NULL);
- for ( i = PAGE_SIZE/sizeof(uint64_t); i && *p1 == *p2; i--, p1++, p2++ );
- if ( !i )
-...
2004 Sep 02
2
[LLVMdev] Type uint64_t required but not found
Hi John,
configure still exits, when checking for uint64_t. I've attached a patch,
that properly will fix it. Either uint64_t or u_int64_t will succeed:
Index: configure.ac
===================================================================
RCS file: /var/cvs/llvm/llvm/autoconf/configure.ac,v
retrieving revision 1.106
diff -u -r1.106 configure.ac
---...
2015 Jan 26
2
[LLVMdev] [llvm] r188726 - Adding PIC support for ELF on x86_64 platforms
...following snippet, do you recall what made it necessary to read the value from the object file via Placeholder, rather than from the copied section?
+ // Get the placeholder value from the generated object since
+ // a previous relocation attempt may have overwritten the loaded version
+ uint64_t *Placeholder = reinterpret_cast<uint64_t*>(Section.ObjAddress
+ + Offset);
+ uint64_t *Target = reinterpret_cast<uint64_t*>(Section.Address + Offset);
+ uint64_t FinalAddress = Section.LoadAddress + Offset;
+ *T...
2017 Oct 26
2
[PATCH for-next 0/9] LLVM coverage support for Xen
Hello,
The following patch series enables LLVM coverage support for the Xen
hypervisor. This first patches are a re-organization of the gcov
support, in order to make the support generic for all coverage
technologies. This is mostly a name change from gcov -> cov in several
places and files, together with the addition of a Kconfig option in
order to enable LLVM coverage.
Patch 7 introduces
2007 Jan 11
6
[PATCH 4/8] HVM save restore: vcpu context support
...r ee20d1905bde xen/include/public/arch-x86/xen.h
--- a/xen/include/public/arch-x86/xen.h Thu Jan 11 16:40:55 2007 +0800
+++ b/xen/include/public/arch-x86/xen.h Thu Jan 11 16:51:03 2007 +0800
@@ -107,6 +107,70 @@ DEFINE_XEN_GUEST_HANDLE(trap_info_t);
DEFINE_XEN_GUEST_HANDLE(trap_info_t);
typedef uint64_t tsc_timestamp_t; /* RDTSC timestamp */
+
+/*
+ * World vmcs state
+ */
+struct vmcs_data {
+ uint64_t eip; /* execution pointer */
+ uint64_t esp; /* stack pointer */
+ uint64_t eflags; /* flags register */
+ uint64_t cr0;
+ uint64_t cr3; /* page table d...
2013 Oct 31
2
[LLVMdev] loop vectorizer
...dex_0 = 11 index_1 = 15
The SLP-vectorizer detects 8 stores, but it can’t prove that they are consecutive, so it moves on. Can you simplify the address expression ? Can you write " index0 = i*8 + 0 “ and give it a try ?
>
> For completeness, here the code:
>
> void bar(std::uint64_t start, std::uint64_t end, float * __restrict__ c, float * __restrict__ a, float * __restrict__ b)
> {
> const std::uint64_t inner = 4;
> for (std::uint64_t i = start ; i < end ; i+=4 ) {
> {
> const std::uint64_t ir0 = ( ((i+0)/inner) * 2 + 0 ) * inner + (i+0)%4;
>...
2004 Sep 02
0
[LLVMdev] Type uint64_t required but not found
Henrik Bach wrote:
} Hi John,
}
} configure still exits, when checking for uint64_t. I've attached a patch,
} that properly will fix it. Either uint64_t or u_int64_t will succeed:
}
} Index: configure.ac
} ===================================================================
} RCS file: /var/cvs/llvm/llvm/autoconf/configure.ac,v
} retrieving revision 1.106
} diff -u -r1.106 co...
2013 Oct 31
0
[LLVMdev] loop vectorizer
...ccesses:
loop iter 0:
index_0 = 0 index_1 = 4
index_0 = 1 index_1 = 5
index_0 = 2 index_1 = 6
index_0 = 3 index_1 = 7
loop iter 1:
index_0 = 8 index_1 = 12
index_0 = 9 index_1 = 13
index_0 = 10 index_1 = 14
index_0 = 11 index_1 = 15
For completeness, here the code:
void bar(std::uint64_t start, std::uint64_t end, float * __restrict__
c, float * __restrict__ a, float * __restrict__ b)
{
const std::uint64_t inner = 4;
for (std::uint64_t i = start ; i < end ; i+=4 ) {
{
const std::uint64_t ir0 = ( ((i+0)/inner) * 2 + 0 ) * inner +
(i+0)%4;
const std::uin...
2014 Dec 11
0
[PATCH RFC v6 05/20] virtio: support more feature bits
...-device.c
index 30492ec..60f9ff9 100644
--- a/hw/9pfs/virtio-9p-device.c
+++ b/hw/9pfs/virtio-9p-device.c
@@ -21,7 +21,7 @@
#include "virtio-9p-coth.h"
#include "hw/virtio/virtio-access.h"
-static uint32_t virtio_9p_get_features(VirtIODevice *vdev, uint32_t features)
+static uint64_t virtio_9p_get_features(VirtIODevice *vdev, uint64_t features)
{
virtio_add_feature(&features, VIRTIO_9P_MOUNT_TAG);
return features;
diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c
index 27f263a..9cfae66 100644
--- a/hw/block/virtio-blk.c
+++ b/hw/block/virtio-blk.c
@@ -56...
2014 Dec 11
0
[PATCH RFC v6 05/20] virtio: support more feature bits
...-device.c
index 30492ec..60f9ff9 100644
--- a/hw/9pfs/virtio-9p-device.c
+++ b/hw/9pfs/virtio-9p-device.c
@@ -21,7 +21,7 @@
#include "virtio-9p-coth.h"
#include "hw/virtio/virtio-access.h"
-static uint32_t virtio_9p_get_features(VirtIODevice *vdev, uint32_t features)
+static uint64_t virtio_9p_get_features(VirtIODevice *vdev, uint64_t features)
{
virtio_add_feature(&features, VIRTIO_9P_MOUNT_TAG);
return features;
diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c
index 27f263a..9cfae66 100644
--- a/hw/block/virtio-blk.c
+++ b/hw/block/virtio-blk.c
@@ -56...
2014 Dec 02
0
[PATCH RFC v5 05/19] virtio: support more feature bits
...-device.c
index 30492ec..60f9ff9 100644
--- a/hw/9pfs/virtio-9p-device.c
+++ b/hw/9pfs/virtio-9p-device.c
@@ -21,7 +21,7 @@
#include "virtio-9p-coth.h"
#include "hw/virtio/virtio-access.h"
-static uint32_t virtio_9p_get_features(VirtIODevice *vdev, uint32_t features)
+static uint64_t virtio_9p_get_features(VirtIODevice *vdev, uint64_t features)
{
virtio_add_feature(&features, VIRTIO_9P_MOUNT_TAG);
return features;
diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c
index 27f263a..9cfae66 100644
--- a/hw/block/virtio-blk.c
+++ b/hw/block/virtio-blk.c
@@ -56...
2014 Dec 02
0
[PATCH RFC v5 05/19] virtio: support more feature bits
...-device.c
index 30492ec..60f9ff9 100644
--- a/hw/9pfs/virtio-9p-device.c
+++ b/hw/9pfs/virtio-9p-device.c
@@ -21,7 +21,7 @@
#include "virtio-9p-coth.h"
#include "hw/virtio/virtio-access.h"
-static uint32_t virtio_9p_get_features(VirtIODevice *vdev, uint32_t features)
+static uint64_t virtio_9p_get_features(VirtIODevice *vdev, uint64_t features)
{
virtio_add_feature(&features, VIRTIO_9P_MOUNT_TAG);
return features;
diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c
index 27f263a..9cfae66 100644
--- a/hw/block/virtio-blk.c
+++ b/hw/block/virtio-blk.c
@@ -56...
2019 Jan 02
0
[PATCH nbdkit v2 1/2] Annotate internal function parameters with attribute((nonnull)).
...(struct bitmap *bm, unsigned blksize, unsigned bpb)
{
assert (is_power_of_2 (blksize));
@@ -99,10 +99,11 @@ bitmap_free (struct bitmap *bm)
/* Resize the bitmap to the virtual disk size in bytes.
* Returns -1 on error, setting nbdkit_error.
*/
-extern int bitmap_resize (struct bitmap *bm, uint64_t new_size);
+extern int bitmap_resize (struct bitmap *bm, uint64_t new_size)
+ __attribute__((__nonnull__ (1)));
/* Clear the bitmap (set everything to zero). */
-static inline void
+static inline void __attribute__((__nonnull__ (1)))
bitmap_clear (struct bitmap *bm)
{
memset (bm->bitmap...
2020 Mar 03
1
[PATCH v1 02/11] virtio-mem: Paravirtualized memory hotplug
...ude/linux/virtio_mem.h:187:2: error: unknown type name 'uint16_t'
uint16_t node_id;
^
./usr/include/linux/virtio_mem.h:188:2: error: unknown type name 'uint16_t'
uint16_t padding;
^
>> ./usr/include/linux/virtio_mem.h:190:2: error: unknown type name 'uint64_t'
uint64_t addr;
^
./usr/include/linux/virtio_mem.h:192:2: error: unknown type name 'uint64_t'
uint64_t region_size;
^
./usr/include/linux/virtio_mem.h:198:2: error: unknown type name 'uint64_t'
uint64_t usable_region_size;
^
./usr/include/l...
2014 Dec 11
0
[PATCH RFC v6 18/20] virtio: support revision-specific features
...gt;hotplugged, 1);
diff --git a/hw/virtio/virtio-bus.c b/hw/virtio/virtio-bus.c
index 32e3fab..a30826c 100644
--- a/hw/virtio/virtio-bus.c
+++ b/hw/virtio/virtio-bus.c
@@ -97,18 +97,28 @@ size_t virtio_bus_get_vdev_config_len(VirtioBusState *bus)
}
/* Get the features of the plugged device. */
-uint64_t virtio_bus_get_vdev_features(VirtioBusState *bus,
- uint64_t requested_features)
+uint64_t virtio_bus_get_vdev_features_rev(VirtioBusState *bus,
+ uint64_t requested_features,
+ un...
2014 Dec 11
0
[PATCH RFC v6 18/20] virtio: support revision-specific features
...gt;hotplugged, 1);
diff --git a/hw/virtio/virtio-bus.c b/hw/virtio/virtio-bus.c
index 32e3fab..a30826c 100644
--- a/hw/virtio/virtio-bus.c
+++ b/hw/virtio/virtio-bus.c
@@ -97,18 +97,28 @@ size_t virtio_bus_get_vdev_config_len(VirtioBusState *bus)
}
/* Get the features of the plugged device. */
-uint64_t virtio_bus_get_vdev_features(VirtioBusState *bus,
- uint64_t requested_features)
+uint64_t virtio_bus_get_vdev_features_rev(VirtioBusState *bus,
+ uint64_t requested_features,
+ un...
2014 Dec 02
0
[PATCH RFC v5 18/19] virtio: support revision-specific features
...gt;hotplugged, 1);
diff --git a/hw/virtio/virtio-bus.c b/hw/virtio/virtio-bus.c
index 32e3fab..a30826c 100644
--- a/hw/virtio/virtio-bus.c
+++ b/hw/virtio/virtio-bus.c
@@ -97,18 +97,28 @@ size_t virtio_bus_get_vdev_config_len(VirtioBusState *bus)
}
/* Get the features of the plugged device. */
-uint64_t virtio_bus_get_vdev_features(VirtioBusState *bus,
- uint64_t requested_features)
+uint64_t virtio_bus_get_vdev_features_rev(VirtioBusState *bus,
+ uint64_t requested_features,
+ un...