search for: datap

Displaying 20 results from an estimated 23 matches for "datap".

Did you mean: data
2009 Sep 17
5
"this" variables being overridden?
Hi I encountered this problem a few times in the past, but only now it is consistent enough so I can write this email. In short, the problem is that after I copy some structure from the profiled program to the dtrace space, and set a "this-dataP" variable to point to the local copy, after a while some of the fields of the local structure are overridden with junk values. In particular, consider the following code: pid$target::foo:entry { this->dataP = (ProfData*)copyin(arg2, sizeof(ProfData)); } /* various of other foo:entry...
2013 Apr 11
1
Problem with caret
Hello all. I am using method "bag()" to develop a bagging with my dataset. When I do bag( dataP, dataP$Score, B=10) I obtain this error: error en bag.default(Score ~ ., data = dataP, B = 10) : entrada en evaluacion: recursivo por defecto o problemas anteriores? ( in english, evaluating input: default recursive or previous problems?) Any idea? Thanks! [[alternative HTML version deleted...
2016 May 15
0
[PATCH] tools/virtio: add inorder option
...t_used_idx = 0; +#ifndef INORDER /* Put everything in free lists. */ guest.free_head = 0; +#endif for (i = 0; i < ring_size - 1; i++) ring.desc[i].next = i + 1; host.used_idx = 0; @@ -84,13 +98,20 @@ void alloc_ring(void) /* guest side */ int add_inbuf(unsigned len, void *buf, void *datap) { - unsigned head, avail; + unsigned head; +#ifndef INORDER + unsigned avail; +#endif struct vring_desc *desc; if (!guest.num_free) return -1; +#ifdef INORDER + head = (ring_size - 1) & (guest.avail_idx++); +#else head = guest.free_head; +#endif guest.num_free--; desc = rin...
2016 May 15
0
[PATCH] tools/virtio: add inorder option
...t_used_idx = 0; +#ifndef INORDER /* Put everything in free lists. */ guest.free_head = 0; +#endif for (i = 0; i < ring_size - 1; i++) ring.desc[i].next = i + 1; host.used_idx = 0; @@ -84,13 +98,20 @@ void alloc_ring(void) /* guest side */ int add_inbuf(unsigned len, void *buf, void *datap) { - unsigned head, avail; + unsigned head; +#ifndef INORDER + unsigned avail; +#endif struct vring_desc *desc; if (!guest.num_free) return -1; +#ifdef INORDER + head = (ring_size - 1) & (guest.avail_idx++); +#else head = guest.free_head; +#endif guest.num_free--; desc = rin...
2009 Mar 21
1
Subsetting data where the condition is that the value of some column contains some substring
I have some data that looks like this: > dataP input output corpusFreq pvolOT pvolRatioOT 1 give(my sister, the old book) P 47.0 56016 0.1543651 5 donate(her, the book) P 48.7 68928 0.1899471 9 give(my sister, the book) P 73.4 80136 0.2208333...
2016 Jun 13
0
[PATCH v8 2/5] ptr_ring: ring test
...+ +static unsigned long long headcnt, tailcnt; +static struct ptr_ring array ____cacheline_aligned_in_smp; + +/* implemented by ring */ +void alloc_ring(void) +{ + int ret = ptr_ring_init(&array, ring_size, 0); + assert(!ret); +} + +/* guest side */ +int add_inbuf(unsigned len, void *buf, void *datap) +{ + int ret; + + ret = __ptr_ring_produce(&array, buf); + if (ret >= 0) { + ret = 0; + headcnt++; + } + + return ret; +} + +/* + * ptr_ring API provides no way for producer to find out whether a given + * buffer was consumed. Our tests merely require that a successful get_buf + * implie...
2016 Jun 13
0
[PATCH v8 2/5] ptr_ring: ring test
...+ +static unsigned long long headcnt, tailcnt; +static struct ptr_ring array ____cacheline_aligned_in_smp; + +/* implemented by ring */ +void alloc_ring(void) +{ + int ret = ptr_ring_init(&array, ring_size, 0); + assert(!ret); +} + +/* guest side */ +int add_inbuf(unsigned len, void *buf, void *datap) +{ + int ret; + + ret = __ptr_ring_produce(&array, buf); + if (ret >= 0) { + ret = 0; + headcnt++; + } + + return ret; +} + +/* + * ptr_ring API provides no way for producer to find out whether a given + * buffer was consumed. Our tests merely require that a successful get_buf + * implie...
2016 Jan 21
1
[PATCH] tools/virtio: add ringtest utilities
...+ ring[i] = desc; + } + guest.num_free = ring_size; + data = malloc(ring_size * sizeof *data); + if (!data) { + perror("Unable to allocate data buffer.\n"); + exit(3); + } + memset(data, 0, ring_size * sizeof *data); +} + +/* guest side */ +int add_inbuf(unsigned len, void *buf, void *datap) +{ + unsigned head, index; + + if (!guest.num_free) + return -1; + + guest.num_free--; + head = (ring_size - 1) & (guest.avail_idx++); + + /* Start with a write. On MESI architectures this helps + * avoid a shared state with consumer that is polling this descriptor. + */ + ring[head].addr =...
2016 Jan 21
1
[PATCH] tools/virtio: add ringtest utilities
...+ ring[i] = desc; + } + guest.num_free = ring_size; + data = malloc(ring_size * sizeof *data); + if (!data) { + perror("Unable to allocate data buffer.\n"); + exit(3); + } + memset(data, 0, ring_size * sizeof *data); +} + +/* guest side */ +int add_inbuf(unsigned len, void *buf, void *datap) +{ + unsigned head, index; + + if (!guest.num_free) + return -1; + + guest.num_free--; + head = (ring_size - 1) & (guest.avail_idx++); + + /* Start with a write. On MESI architectures this helps + * avoid a shared state with consumer that is polling this descriptor. + */ + ring[head].addr =...
2004 Feb 17
0
VFS module programmieren
...ee_data This is a function pointer to a function that free's the module private data. If you talloc your private data on the TALLOC_CTX handle->conn->mem_ctx, you can set this function pointer to NULL. Some useful MACROS for handle private data. #define SMB_VFS_HANDLE_GET_DATA(handle, datap, type, ret) { \ if (!(handle)||((datap=(type *)(handle)->data)==NULL)) { \ DEBUG(0,("%s() failed to get vfs_handle->data!\n",FUNCTION_MACRO)); \ ret; \ } \ } #define SMB_VFS_HANDLE_SET_DATA(handle, datap, free_fn, type, ret) { \ if (!(handle)) { \ DEBUG(0,("%s() faile...
2008 May 27
1
smbldap_open: cannot access LDAP when not root..
Greetings list, I just upgraded my main file server, and copied over a dump of my LDAP database, samba conf files, tdbs, etc. Everything fired up OK and runs, except: -Some users (perhaps 5 or 6 out of 125) can't log in, getting the "domain unavailable" message -I can't rejoin them to the domain - the process appears to succeed, but doesn't -One of the machine accounts
2011 Jul 19
4
[PATCH v1 0/2] Support dropping of capabilities from early userspace.
This patchset applies to klibc mainline. As is it will probably collide with Maximilian's recent patch to rename run-init to switch_root posted last week. To boot an untrusted environment with certain capabilities locked out, we'd like to be able to drop the capabilities up front from early userspace, before we actually transition onto the root volume. This patchset implements this by
2007 Apr 08
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_buffer.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c
...ter data) -{ - /* FIXME: improve this */ - return SWFDEC_AUDIO_OUT_STEREO_44100; -} - static SwfdecBuffer * convert_synth_to_buffer (MadData *mdata) { @@ -138,15 +140,18 @@ convert_synth_to_buffer (MadData *mdata) return buffer; } -static SwfdecBuffer * -swfdec_codec_mad_decode (gpointer datap, SwfdecBuffer *buffer) +static void +swfdec_audio_decoder_mad_push (SwfdecAudioDecoder *dec, SwfdecBuffer *buffer) { - MadData *data = datap; - SwfdecBuffer *out; - SwfdecBufferQueue *queue; + MadData *data = (MadData *) dec; + SwfdecBuffer *out, *empty = NULL; guint amount = 0, size; -...
2016 May 24
0
[PATCH] tools/virtio: add noring tool
...--- /dev/null +++ b/tools/virtio/ringtest/noring.c @@ -0,0 +1,69 @@ +#define _GNU_SOURCE +#include "main.h" +#include <assert.h> + +/* stub implementation: useful for measuring overhead */ +void alloc_ring(void) +{ +} + +/* guest side */ +int add_inbuf(unsigned len, void *buf, void *datap) +{ + return 0; +} + +/* + * skb_array API provides no way for producer to find out whether a given + * buffer was consumed. Our tests merely require that a successful get_buf + * implies that add_inbuf succeed in the past, and that add_inbuf will succeed, + * fake it accordingly. + */ +void *get_...
2016 May 24
0
[PATCH] tools/virtio: add noring tool
...--- /dev/null +++ b/tools/virtio/ringtest/noring.c @@ -0,0 +1,69 @@ +#define _GNU_SOURCE +#include "main.h" +#include <assert.h> + +/* stub implementation: useful for measuring overhead */ +void alloc_ring(void) +{ +} + +/* guest side */ +int add_inbuf(unsigned len, void *buf, void *datap) +{ + return 0; +} + +/* + * skb_array API provides no way for producer to find out whether a given + * buffer was consumed. Our tests merely require that a successful get_buf + * implies that add_inbuf succeed in the past, and that add_inbuf will succeed, + * fake it accordingly. + */ +void *get_...
2007 Mar 05
0
11 commits - configure.ac libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_swf_decoder.c
...c_root_movie_parent_class)->dispose (object); } @@ -209,3 +214,56 @@ swfdec_root_movie_load (SwfdecRootMovie swfdec_player_launch (root->player, url, target); } +typedef struct { + gpointer data; + GDestroyNotify free; +} CharacterData; + +static void +character_data_free (gpointer datap) +{ + CharacterData *data = datap; + + if (data->free) + data->free (data->data); + + g_free (data); +} + +void +swfdec_root_movie_set_character_data (SwfdecRootMovie *movie, + SwfdecCharacter *character, gpointer data, GDestroyNotify destroy) +{ + CharacterData *cdata; + + g_r...
2007 Mar 07
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...c_root_movie_parent_class)->dispose (object); } @@ -214,60 +210,6 @@ swfdec_root_movie_load (SwfdecRootMovie swfdec_player_launch (root->player, url, target); } -typedef struct { - gpointer data; - GDestroyNotify free; -} CharacterData; - -static void -character_data_free (gpointer datap) -{ - CharacterData *data = datap; - - if (data->free) - data->free (data->data); - - g_free (data); -} - -void -swfdec_root_movie_set_character_data (SwfdecRootMovie *movie, - SwfdecCharacter *character, gpointer data, GDestroyNotify destroy) -{ - CharacterData *cdata; - - g_r...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...FFMpegVideo *codec = codec_data; AVCodecContext *ctx = codec->ctx; diff --git a/libswfdec/swfdec_codec_mad.c b/libswfdec/swfdec_codec_mad.c index fa59e9c..054de4f 100644 --- a/libswfdec/swfdec_codec_mad.c +++ b/libswfdec/swfdec_codec_mad.c @@ -144,7 +144,7 @@ swfdec_codec_mad_decode (gpointer datap, MadData *data = datap; SwfdecBuffer *out; SwfdecBufferQueue *queue; - unsigned int amount = 0, size; + guint amount = 0, size; queue = swfdec_buffer_queue_new (); diff --git a/libswfdec/swfdec_codec_screen.c b/libswfdec/swfdec_codec_screen.c index 417fc58..259cf63 100644 --- a/li...
2007 Aug 21
0
Branch 'vivi' - 15 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_types.h vivified/core vivified/ui
..._docklet_class_init (ViviViviDo } static void -vivi_vivi_docklet_init (ViviViviDocklet *vivi_docklet) +vivi_vivi_docklet_init (ViviViviDocklet *docklet) { } +typedef struct { + GtkWidget * result; + GType desired_type; +} FindData; + +static void +find_widget (GtkWidget *widget, gpointer datap) +{ + FindData *data = datap; + + if (G_TYPE_CHECK_INSTANCE_TYPE (widget, data->desired_type)) { + data->result = widget; + return; + } + if (GTK_IS_CONTAINER (widget)) + gtk_container_foreach (GTK_CONTAINER (widget), find_widget, data); +} + +GtkWidget * +vivi_vivi_docklet_find_...
2007 Mar 29
0
Branch 'as' - 9 commits - configure.ac doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_stack.c
...ee (queue); + swfdec_buffer_queue_unref (queue); return outbuf; } diff --git a/libswfdec/swfdec_codec_mad.c b/libswfdec/swfdec_codec_mad.c index 18ca2fb..fa59e9c 100644 --- a/libswfdec/swfdec_codec_mad.c +++ b/libswfdec/swfdec_codec_mad.c @@ -189,7 +189,7 @@ swfdec_codec_mad_decode (gpointer datap, out = swfdec_buffer_queue_pull (queue, size); else out = NULL; - swfdec_buffer_queue_free (queue); + swfdec_buffer_queue_unref (queue); return out; } diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c index 81d536c..fc5b1b6 100644 --- a/libswfdec/swfdec_loader....