search for: hnode

Displaying 5 results from an estimated 5 matches for "hnode".

Did you mean: inode
2005 Dec 12
1
dendrogram: how to obtain leaf height
...ot; (which changes with "hang") and that is what I want. Obviously, the info is there (e.g., "str(dendrogram)"), I just don't see how to obtain it as I want. hc <- hclust(dist(USArrests), "ave") hcd <- as.dendrogram(hc, hang = 0.001) dendrapply(rev(hcd), hnode) ## None of the following work as I want hnode <- function(x) { ## nothing if (is.leaf(x)) print(x$height) } hnode <- function(x) { ## just prints if (is.leaf(x)) print(x) else NULL } hnode <- function(x) { ## doesn't work either...
2013 Nov 26
2
[LLVMdev] LLVM compilation problem
...lvm/IR/InstrTypes.h:827: error: call of overloaded `dyn_cast(llvm::Type*&)' is ambiguous llvm/include/llvm/Support/Casting.h:249: error: call of overloaded `cast(llvm::Value*&)' is ambiguous llvm/lib/Support/YAMLTraits.cpp:88: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous llvm/lib/Support/YAMLTraits.cpp:99: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous llvm/lib/Support/YAMLTraits.cpp:125: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous llvm/lib/Support/YAMLTrait...
2019 Oct 21
0
[PATCH RFC 1/3] kcov: remote coverage support
...; +}; > + > +struct kcov_remote_area { > + struct list_head list; > + unsigned int size; > +}; > + > +struct kcov_remote { > + u64 handle; > + struct kcov *kcov; > + struct hlist_node hnode; > }; > > +static DEFINE_SPINLOCK(kcov_remote_lock); > +static DEFINE_HASHTABLE(kcov_remote_map, 4); > +static struct list_head kcov_remote_areas = LIST_HEAD_INIT(kcov_remote_areas); > + > +static struct kcov_remote *kcov_remote_find(u64 handle) > +{ > + struct kco...
2019 Oct 24
0
[PATCH v2 1/3] kcov: remote coverage support
...return ERR_PTR(-EEXIST); > + remote = kmalloc(sizeof(*remote), GFP_ATOMIC); > + if (!remote) > + return ERR_PTR(-ENOMEM); > + remote->handle = handle; > + remote->kcov = kcov; > + hash_add(kcov_remote_map, &remote->hnode, handle); I think it will make sense to check that there is no existing kcov with the same handle registered. Such condition will be extremely hard to debug based on episodically missing coverage. ... > void kcov_task_exit(struct task_struct *t) > { > struct kcov *kcov; > @@...
2019 Oct 23
0
[PATCH v2 1/3] kcov: remote coverage support
...> + > + if (kcov_remote_find(handle)) > + return ERR_PTR(-EEXIST); > + remote = kmalloc(sizeof(*remote), GFP_ATOMIC); > + if (!remote) > + return ERR_PTR(-ENOMEM); > + remote->handle = handle; > + remote->kcov = kcov; > + hash_add(kcov_remote_map, &remote->hnode, handle); > + return remote; > +} > + > > ... > > + spin_lock(&kcov_remote_lock); > + for (i = 0; i < remote_arg->num_handles; i++) { > + kcov_debug("handle %llx\n", remote_arg->handles[i]); > + if (!kcov_check_handle(remote_arg->handles...