search for: stru

Displaying 20 results from an estimated 137 matches for "stru".

Did you mean: str
2005 Mar 16
1
[LLVMdev] Dynamic Creation of a simple program
Hi, Given these C instructions: ============================== struct stru { struct stru *Next; }; struct list *NewStru = malloc ( sizeof ( struct stru ) ); struct list *tmp.3; ... tmp.3 = NewStru->Next; ============================== LLVM generates something like this: %tmp.0 = malloc %struct.stru ; <%struc...
2005 Mar 16
2
[LLVMdev] Dynamic Creation of a simple program
Hi Misha, Thanks for your answer I was doing this: ======================== BasicBlock *BBlock = new BasicBlock("entry", MyFunc); ... Value *Zero = ConstantSInt::get(Type::IntTy, 0); Value *UZero = ConstantUInt::get(Type::UIntTy, 0); MallocInst* mi = new MallocInst( STyStru ); mi->setName("tmp.0"); BBlock->getInstList().push_back( mi ); GetElementPtrInst *m_Next = new GetElementPtrInst(mi, UZero, Zero, "tmp.3", BBlock ); ... ======================== But I tried your code instead of the lines above: GetElementPtrInst *GEP = new Ge...
2005 Mar 15
0
[LLVMdev] Dynamic Creation of a simple program
On Tue, 15 Mar 2005, xavier wrote: > Thanks for the information > I am trying to use one of your examples for recursive data structures: > > ========================= > PATypeHolder StructTy = OpaqueType::get(); > std::vector<const Type*> Elts; > Elts.push_back(PointerType::get(StructTy)); > Elts.push_back(PointerType::get(Type::SByteTy)); > StructType *NewSTy = StructType::get(Elts); > > // A...
2005 Mar 15
2
[LLVMdev] Dynamic Creation of a simple program
Thanks for the information I am trying to use one of your examples for recursive data structures: ========================= PATypeHolder StructTy = OpaqueType::get(); std::vector<const Type*> Elts; Elts.push_back(PointerType::get(StructTy)); Elts.push_back(PointerType::get(Type::SByteTy)); StructType *NewSTy = StructType::get(Elts); // At this point, NewSTy = "{ opaque*, sby...
2014 Aug 11
0
Novi Zakon o radu stupio je na snagu 7.kolovoza 2014
Ako ova poruka nije prikazama u cjelini, mo&#158;ete je pogledati na webu.. Dana 15. srpnja 2014. u Saboru je izglasan Novi Zakon o radu! Novi Zakon o radu stupio je na snagu 7. kolovoza 2014. Novo stru??no izdanje! 30% popusta u prednarud??bi! komentar uz svaki pojedini ??lanak, iz kojega ??e ??itatelji mo??i saznati kako se pojedina odredba zakona u praksi primjenjuje, ??to konkretno zna??i za odre??eni radni odnos, prava i obveze radnika i poslodavca i sli??no, uz navo??enje primjera kod poje...
2014 Sep 14
0
Snimanja energetskih fenomena na bosanskim piramidama
...kojima ve? devet godina radi Fondacija ?Arheolo?ki park: Bosanska piramida Sunca?: Podzemni labirint Ravne, Bosansku piramidu Sunca (betonske blokove na sjevernoj strani i vrh piramide), Bosansku piramidu Mjeseca, tumulus u Vratnici i KTK tunele. Osim obilaska lokacija s Osmanagi?em, susreo se i sa stru?nim timom Fondacije u ?ijem su sastavu: arheolo?ki mena?er, antropolog, geolog i arheolog. Posjetio je i laboratorije Fondacije za keramiku i kamen te se upoznao s nau?nom metodologijom pronalaska, sortiranja, dokumentiranja i za?tite artifakata. U nezvani?noj izjavi za turiste i volontere Hancock...
2012 Sep 11
0
[PATCH 1/3] x86/hvm: don't use indirect calls without need
Direct calls perform better, so we should prefer them and use indirect ones only when there indeed is a need for indirection. Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/xen/arch/x86/apic.c +++ b/xen/arch/x86/apic.c @@ -1373,7 +1373,7 @@ void error_interrupt(struct cpu_user_reg void pmu_apic_interrupt(struct cpu_user_regs *regs) { ack_APIC_irq(); - hvm_do_pmu_interrupt(regs); + vpmu_do_interrupt(regs); } /* --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -73,6 +73,8 @@ bool_t cpu_has_lmsl; #define set_segment_register(...
2007 Jun 08
0
[git patches] ocfs2 fixes
...Mark Fasheh: ocfs2: Fix invalid assertion during write on 64k pages Tiger Yang: ocfs2: Fix masklog breakage diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index 0023b31..a480b09 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c @@ -798,6 +798,11 @@ int ocfs2_map_and_write_splice_data(stru } to = from + bytes; + BUG_ON(from > PAGE_CACHE_SIZE); + BUG_ON(to > PAGE_CACHE_SIZE); + BUG_ON(from < cluster_start); + BUG_ON(to > cluster_end); + if (wc->w_this_page_new) ret = ocfs2_map_page_blocks(wc->w_this_page, p_blkno, inode, cluster_start, cluster_en...
2004 Dec 06
0
[PATCH] passdb cache fixes
...illa/src/auth/passdb-cache.c dovecot-1.0-test55/src/auth/passdb-cache.c --- dovecot-1.0-test55.vanilla/src/auth/passdb-cache.c 2004-12-04 18:05:55.000000000 +0300 +++ dovecot-1.0-test55/src/auth/passdb-cache.c 2004-12-05 18:52:57.000000000 +0300 @@ -88,7 +88,6 @@ int passdb_cache_lookup_credentials(stru const char **scheme_r) { const char *value, *const *list; - const char *cached_pw; if (passdb_cache == NULL) return FALSE; @@ -108,7 +107,7 @@ int passdb_cache_lookup_credentials(stru list_save(request, NULL, list+1); *result_r = list[0]; - *scheme_r = password_get_s...
2011 Dec 21
2
[PATCH] xenpm: assorted adjustments
...when CPU idle management is disabled in the hypervisor - use calloc() for array allocations that also got cleared via memset() so far Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/tools/misc/xenpm.c +++ b/tools/misc/xenpm.c @@ -87,20 +87,20 @@ static void print_cxstat(int cpuid, stru cxstat->idle_time/1000000UL); for ( i = 0; i < cxstat->nr; i++ ) { - printf("C%d : transition [%020"PRIu64"]\n", + printf("C%-20d: transition [%20"PRIu64"]\n", i, cxstat->trigge...
2010 Mar 30
3
[PATCH 4/4] virtio: disable multiport console support.
...------- include/linux/virtio_console.h | 19 -- 2 files changed, 4 insertions(+), 289 deletions(-) diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -252,15 +252,10 @@ static bool is_console_port(struct port return false; } +/* This is incomplete. */ static inline bool use_multiport(struct ports_device *portdev) { - /* - * This condition can be true when put_chars is called from - * early_init - */ - if (!portdev->vdev) - return 0; - return portdev->vdev->features[0] & (...
2010 Mar 30
3
[PATCH 4/4] virtio: disable multiport console support.
...------- include/linux/virtio_console.h | 19 -- 2 files changed, 4 insertions(+), 289 deletions(-) diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -252,15 +252,10 @@ static bool is_console_port(struct port return false; } +/* This is incomplete. */ static inline bool use_multiport(struct ports_device *portdev) { - /* - * This condition can be true when put_chars is called from - * early_init - */ - if (!portdev->vdev) - return 0; - return portdev->vdev->features[0] & (...
2010 Jul 29
1
[Bug] check return of kmalloc()
...BUG_ON() after kmalloc()''s, if they could be changed not to panic it would be great. --- ./fs/btrfs/compression.c 2010-07-06 16:45:48.000000000 +0400 +++ /tmp/cocci-output-7773-0df3b6-compression.c 2010-07-28 18:43:07.000000000 +0400 @@ -350,7 +350,6 @@ int btrfs_submit_compressed_write(struct int ret; WARN_ON(start & ((u64)PAGE_CACHE_SIZE - 1)); - cb = kmalloc(compressed_bio_size(root, compressed_len), GFP_NOFS); atomic_set(&cb->pending_bios, 0); cb->errors = 0; cb->inode = inode; @@ -587,7 +586,6 @@ int btrfs_submit_compressed_read(struct read_unlock(&a...
2013 Dec 09
3
[PATCH 1/3] Fix manpage generation in out-of-tree builds
...--- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/po-docs/ja/Makefile.am b/po-docs/ja/Makefile.am index 820f91a..e954f04 100644 --- a/po-docs/ja/Makefile.am +++ b/po-docs/ja/Makefile.am @@ -92,9 +92,9 @@ guestfs.3: guestfs.pod guestfs-actions.pod guestfs-availability.pod guestfs-stru --man $@ \ --section 3 \ --license LGPLv2+ \ - --insert guestfs-actions.pod:__ACTIONS__ \ - --insert guestfs-availability.pod:__AVAILABILITY__ \ - --insert guestfs-structs.pod:__STRUCTS__ \ + --insert $(srcdir)/guestfs-actions.pod:__ACTIONS__ \ + --insert $(srcdir)/guestfs-ava...
2006 Jun 22
2
[patch] ipconfig add dhcp file preseeding support
...cp_hacking Signed-off-by: maximilian attems <maks at sternwelten.at> diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bootp_proto.c index 137847c..59b03b4 100644 --- a/usr/kinit/ipconfig/bootp_proto.c +++ b/usr/kinit/ipconfig/bootp_proto.c @@ -74,6 +74,7 @@ int bootp_parse(struct netdev *dev, stru dev->hostname[0] = '\0'; dev->nisdomainname[0] = '\0'; dev->bootpath[0] = '\0'; + memcpy(&dev->filename, &hdr->boot_file, FNLEN); if (extlen >= 4 && exts[0] == 99 && exts[1] == 130 && exts[...
2007 Aug 08
2
[PATCH] x86-64: syscall/sysenter support for 32-bit apps
...Index: 2007-08-08/xen/arch/x86/domain.c =================================================================== --- 2007-08-08.orig/xen/arch/x86/domain.c 2007-08-06 15:08:40.000000000 +0200 +++ 2007-08-08/xen/arch/x86/domain.c 2007-08-08 11:37:08.000000000 +0200 @@ -413,6 +413,12 @@ int vcpu_initialise(struct vcpu *v) v->arch.perdomain_ptes = d->arch.mm_perdomain_pt + (v->vcpu_id << GDT_LDT_VCPU_SHIFT); +#ifdef __x86_64__ + v->arch.sysexit_cs = 3; + v->arch.syscall_eflags_mask = X86_EFLAGS_DF|X86_EFLAGS_TF|X86_EFLAGS_NT| + X86...
2008 Jul 03
3
[PATCH 2/4] pvSCSI : Fix many points of backend/frontend driver
Please refer following Mr. Steven''s mail posted on June 24th. Message-ID: <20080624131313.GB18379@weybridge.uk.xensource.com> Message-ID: <20080624131256.GA18379@weybridge.uk.xensource.com> Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com> Signed-off-by: Jun Kamada <kama@jp.fujitsu.com> ----- Jun Kamada
2009 Sep 21
0
[PATCH 1/6] virtio_pci: minor MSI-X cleanups
...m> --- drivers/virtio/virtio_pci.c | 89 ++++++++++++++++++++++++-------------------- 1 file changed, 49 insertions(+), 40 deletions(-) diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c @@ -84,7 +84,7 @@ struct virtio_pci_vq_info struct list_head node; /* MSI-X vector (or none) */ - unsigned vector; + unsigned msix_vector; }; /* Qumranet donated their vendor ID for devices 0x1000 thru 0x10FF. */ @@ -280,25 +280,14 @@ static void vp_free_vectors(struct virti vp_dev->msix_entries = NULL; }...
2009 Sep 21
0
[PATCH 1/6] virtio_pci: minor MSI-X cleanups
...m> --- drivers/virtio/virtio_pci.c | 89 ++++++++++++++++++++++++-------------------- 1 file changed, 49 insertions(+), 40 deletions(-) diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c @@ -84,7 +84,7 @@ struct virtio_pci_vq_info struct list_head node; /* MSI-X vector (or none) */ - unsigned vector; + unsigned msix_vector; }; /* Qumranet donated their vendor ID for devices 0x1000 thru 0x10FF. */ @@ -280,25 +280,14 @@ static void vp_free_vectors(struct virti vp_dev->msix_entries = NULL; }...
2008 Sep 10
0
[RFC][PATCH -mm] blktrace: adds ioprio to blktrace
Hi, The following patch adds ioprio to blktrace. Explanation: As you know, I/O schedulers such as cfq use io_contexts of current tasks to schedule block I/O. But recently, some are suggesting to use more appropriate io_contexts obtained by, for example, doing io-tracking, making struct bio have io_context member, etc. I thought adding ioprio to blktrace output might be helpful. Implementation: 1. I used req_get_ioprio() and [new]bio_get_ioprio() to get ioprio. Currently bio_get_ioprio just returns current->io_context->ioprio. Appreciate any comments: Does this kind...