search for: struc

Displaying 20 results from an estimated 227 matches for "struc".

Did you mean: struck
2011 Aug 05
1
jagged array (matrices of different dimensions)
...R. I have found no commentary on how to do it in the help files, but maybe I am misunderstanding the purpose of some of the array functions (e.g. tapply). I am using a longitudinal dataset where each individual has a different number of time points (observations). I need to create correlation structures for each individual which are necessarily different lengths. Currently I am using for loops in an attempt to do so. The closest I can get is with the following code (n=3) where I create matrices of the same dimensions with NA's for timepoints not used. Perhaps there is simply a way to d...
2008 Nov 27
1
RFC: COMBOOT API directory calls
...eing read and the offset within the sector for the next file entry to read. I'm contemplating if I should also keep track of the starting sector of the directory (in case we need to rewinddir()). At the moment, I'm first looking at SYSLINUX (the other disk derivatives are next). It has a struc open_file_t and an array containing these strucs Files. Should I create a new struc, open_dir_t to house the needed data elements, or reuse the existing struc? If I should reuse open_file_t, how should I and should I allocate a new array Dirs or reuse Files? If I don't reuse open_file_t, Dir...
2012 Aug 16
5
[PATCH] AMD, powernow: Update P-state directly when _PSD's CoordType is DOMAIN_COORD_TYPE_HW_ALL
...Boris Ostrovsky <boris.ostrovsky@amd.com> diff -r 6d56e31fe1e1 -r 85190245a94d xen/arch/x86/acpi/cpufreq/powernow.c --- a/xen/arch/x86/acpi/cpufreq/powernow.c Wed Aug 15 09:41:21 2012 +0100 +++ b/xen/arch/x86/acpi/cpufreq/powernow.c Thu Aug 16 18:38:21 2012 +0200 @@ -56,20 +56,9 @@ static struct cpufreq_driver powernow_cpufreq_driver; -struct drv_cmd { - unsigned int type; - const cpumask_t *mask; - u32 val; - int turbo; -}; - -static void transition_pstate(void *drvcmd) +static void transition_pstate(void *pstate) { - struct drv_cmd *cmd; - cmd = (struct drv_cmd *) d...
2016 May 12
3
[Bug 1066] New: nfq_get_timestamp() not setting timeval struc
https://bugzilla.netfilter.org/show_bug.cgi?id=1066 Bug ID: 1066 Summary: nfq_get_timestamp() not setting timeval struc Product: libnetfilter_queue Version: unspecified Hardware: x86_64 OS: Ubuntu Status: NEW Severity: normal Priority: P5 Component: libnetfilter_queue Assignee: netfilter-buglog at lists.netfilter.org...
2007 Dec 25
5
[Bug 13815] New: Wrong url for http get
http://bugs.freedesktop.org/show_bug.cgi?id=13815 Summary: Wrong url for http get Product: swfdec Version: git Platform: Other URL: http://www.betterworldbooks.com/Flash/output.swf OS/Version: All Status: NEW Severity: normal Priority: medium Component: library AssignedTo: swfdec at
2011 Jul 29
2
'breackpoints' (package 'strucchange'): 2 blocking error messages when using for multiple regression model testing
Good morning to all, I am encountering a blocking issue when using the function 'breackpoints' from package 'strucchange'. *Context:* I use a data frame, 248 observations of 5 variables, no NA. I compute a linear model, as y~x1+...+x4 x4 is a dummy variable (0 or 1). I want to check this model for structural changes. *Process & issues:* *First, I used function Fstats.* It works perfectly. However,...
2009 Jul 07
0
[PATCH] speed up snapshot dropping
...n avoid reading the block. Signed-off-by: Yan Zheng <zheng.yan@oracle.com> --- diff -urp 1/fs/btrfs/extent-tree.c 2/fs/btrfs/extent-tree.c --- 1/fs/btrfs/extent-tree.c 2009-07-03 08:08:34.152846801 +0800 +++ 2/fs/btrfs/extent-tree.c 2009-07-03 14:34:50.455818000 +0800 @@ -4568,11 +4568,6 @@ struct walk_control { /* * hepler to process tree block while walking down the tree. * - * when wc->stage == DROP_REFERENCE, this function checks - * reference count of the block. if the block is shared and - * we need update back refs for the subtree rooted at the - * block, this function change...
2008 Mar 06
4
FW: oprofile 0.9.3 xen symbols incorrect
Hi I am using oprofile 0.9.3 on xen cs 16540 on an Intel system. When I look at the top "hot" functions, I see p2m_change_type being one of the top function in xen-syms. This function is only in the svm (AMD) code and should not appear on an Intel system. I see that this function is not being clled at all when I am running my apps as I have put printk in the functions and they do
2009 Feb 10
3
[PATCH 2/2] Use correct config option for ixgbe VMDq
...net/ixgbe/ixgbe.h 2009-02-10 14:32:57.000000000 -0800 @@ -35,7 +35,7 @@ #include <linux/pci.h> #include <linux/netdevice.h> #include <linux/vmalloc.h> -#ifdef CONFIG_XEN_NETDEV2_BACKEND +#ifdef CONFIG_XEN_NETDEV2_VMQ #include <linux/netvmq.h> #endif @@ -423,7 +423,7 @@ struct ixgbe_adapter { unsigned int lro_flushed; unsigned int lro_no_desc; #endif -#ifdef CONFIG_XEN_NETDEV2_BACKEND +#ifdef CONFIG_XEN_NETDEV2_VMQ struct net_vmq *vmq; u32 rx_queues_allocated; #endif diff -urpN a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c --- a/drivers/net...
2001 Apr 02
0
Stripplot - multiple plotting characters
...can't understand how to set up two different plotting characters within a stripplot graph. I would use plot(), but I want to use the 'stacking' option in stripplot as the overplotting is quite severe: patch <- factor(rep(c("S", "M", "B"), c(7, 7, 7))) struc <- c(4,6,6,8,8,8,12,4,6,6,6,8,10,10,6,6,6,8,8,8,8) occur <- c(0,0,0,1,1,0,1,0,0,1,0,0,1,0,0,0,1,1,1,1,0) woods <- data.frame(patch, struc, occur) woods$sym <- woods$occur woods$sym[woods$sym==1] <- 16 ; woods$sym[woods$sym==0] <- 1 attach(woods) stripplot(struc~patch, method = &...
2011 Jan 31
2
[LLVMdev] llvm::Pass::Pass(llvm::PassKind, intptr_t): Assertion `pid && "pid cannot be 0"' failed.
I have written a new pass, it compiles ok but crashes when i run it with error (llvm::Pass::Pass(llvm::PassKind, intptr_t): Assertion `pid && "pid cannot be 0"' failed.). The pass is : using namespace llvm; namespace { struct Dfl : public FunctionPass { static char ID; Dfl() : FunctionPass(ID) { } virtual bool runOnFunction(Function &F) { bool modified=false; errs() << "In Dfl for Function : " << F.getName(); if (F.empty()) errs() << " is empty."...
2013 Aug 27
2
[PATCH] AMD IOMMU: add missing checks
...+ special->handle); + return 0; + } + if ( ioapic_sbdf[special->handle].pin_2_idx ) { if ( ioapic_sbdf[special->handle].bdf == bdf && @@ -943,13 +950,14 @@ static int __init parse_ivrs_table(struc { ioapic_sbdf[IO_APIC_ID(apic)].pin_2_idx = xmalloc_array( u16, nr_ioapic_entries[apic]); - if ( !ioapic_sbdf[IO_APIC_ID(apic)].pin_2_idx ) + if ( ioapic_sbdf[IO_APIC_ID(apic)].pin_2_idx ) + memset(ioapic_sbdf[IO_APIC_ID(ap...
2011 Jan 31
2
[LLVMdev] Error : llvm/include/llvm/Pass.h:188: error: incomplete type 'llvm::DominatorTree' used in nested name specifier
...on pass) called Dfl from the Hello example and notes on "Writing an LLVM Pass". When I compile the program I get inncomplete type error (llvm/include/llvm/Pass.h:188: error: incomplete type 'llvm::DominatorTree' used in nested name specifier). The code is given below. Surinder struct Dfl : public FunctionPass { raw_ostream *Out; static char ID; // Dfl() : FunctionPass(&ID) { } // virtual bool runOnFunction(Function &F) { // //BlocksCounter++; EdgesCounter++; InstCounter++; bool modified=false; errs() << "In Dfl for F...
2018 May 03
1
[PATCH] daemon: fix memory allocation and leaks in OCaml stubs
Use the cleanup handlers to free the structs (and list of structs) in case their OCaml->C transformation fails for any reason; use calloc() to not try to use uninitialized memory. In case of lists, avoid allocating the memory for the array if there are no elements, since the returned pointer in that case is either NULL, or a free()-only...
2011 Aug 15
9
[patch v2 0/9] btrfs: More error handling patches
Hi all - The following 9 patches add more error handling to the btrfs code: - Add btrfs_panic - Catch locking failures in {set,clear}_extent_bit - Push up set_extent_bit errors to callers - Push up lock_extent errors to callers - Push up clear_extent_bit errors to callers - Push up unlock_extent errors to callers - Make pin_down_extent return void - Push up btrfs_pin_extent errors to
2011 Jan 31
0
[LLVMdev] llvm::Pass::Pass(llvm::PassKind, intptr_t): Assertion `pid && "pid cannot be 0"' failed.
...wrote: > I have written a new pass, it compiles ok but crashes when i run it > with error (llvm::Pass::Pass(llvm::PassKind, intptr_t): Assertion `pid > && "pid cannot be 0"' failed.). > > The pass is : > > using namespace llvm; > namespace > { >  struct Dfl : public FunctionPass { >    static char ID; >    Dfl() : FunctionPass(ID) { } >    virtual bool runOnFunction(Function &F) { >      bool modified=false; >      errs() << "In Dfl for Function : " << F.getName(); >      if (F.empty()) errs() <<...
2010 Jun 21
0
[PATCH V3 6/8] Cleancache: btrfs hooks for cleancache
...600 @@ -39,6 +39,7 @@ #include <linux/miscdevice.h> #include <linux/magic.h> #include <linux/slab.h> +#include <linux/cleancache.h> #include "compat.h" #include "ctree.h" #include "disk-io.h" @@ -477,6 +478,7 @@ static int btrfs_fill_super(struct super sb->s_root = root_dentry; save_mount_options(sb, data); + sb->cleancache_poolid = cleancache_init_fs(PAGE_SIZE); return 0; fail_close: --- linux-2.6.35-rc2/fs/btrfs/extent_io.c 2010-06-05 21:43:24.000000000 -0600 +++ linux-2.6.35-rc2-cleancache/fs/btrfs/extent_io.c 2010-06-1...
2007 Jan 19
0
[PATCH 4/4] HVM save/restore clean up: enable 64 guest on 64 HV
...64b HV with this. need reconsider it for security. diff -r a4373c8e7e2d xen/arch/x86/mm/shadow/common.c --- a/xen/arch/x86/mm/shadow/common.c Fri Jan 19 19:40:12 2007 +0800 +++ b/xen/arch/x86/mm/shadow/common.c Fri Jan 19 19:42:42 2007 +0800 @@ -2575,8 +2575,6 @@ static void sh_update_paging_modes(struc "this HVM vcpu''s (d=%u v=%u) paging mode!\n", current->domain->domain_id, current->vcpu_id, v->domain->domain_id, v->vcpu_id); - domain_cr...
2010 Feb 01
0
[PATCH] btrfs: Fix oopsen when dropping empty tree.
...off-by: Yan Zheng <zheng.yan@oracle.com> --- diff -urp 1/fs/btrfs/extent-tree.c 2/fs/btrfs/extent-tree.c --- 1/fs/btrfs/extent-tree.c 2010-01-22 12:16:34.203525744 +0800 +++ 2/fs/btrfs/extent-tree.c 2010-02-01 10:26:19.865562007 +0800 @@ -5402,10 +5402,6 @@ static noinline int walk_down_tree(struc int ret; while (level >= 0) { - if (path->slots[level] >= - btrfs_header_nritems(path->nodes[level])) - break; - ret = walk_down_proc(trans, root, path, wc, lookup_info); if (ret > 0) break; @@ -5413,6 +5409,10 @@ static noinline int walk_down_tree(struc if...
2011 Jan 06
1
Send email with delayed job
Hi, I want to send email with delayed job. In order to do so, I have a Notifier model with X methods sending different type of emails. In the documentation, they suggest to send email like this: class NewsletterJob < Struct.new(:text, :emails) def perform emails.each { |e| NewsletterMailer.deliver_text_to_email(text, e) } end end But in my notifier model I have X methods, does it mean I have to create a different Struc for each methods? Greg -- Posted via http://www.ruby-forum.com/. -- You rece...