Lines Matching full:prof_buf
970 struct prof_buf {
976 static void add_data_to_buffer(struct prof_buf *b, const void *d, size_t len)
999 add_data_to_buffer((struct prof_buf *)data, str, strlen(str));
1005 struct prof_buf prof_buf = { 0, 0, 0, 0 };
1007 dump_profile(root, 0, dump_profile_to_buffer_cb, &prof_buf);
1008 if (prof_buf.err) {
1012 add_data_to_buffer(&prof_buf, "", 1); /* append nul */
1013 if (prof_buf.max - prof_buf.cur > (prof_buf.max >> 3)) {
1014 char *newptr = realloc(prof_buf.base, prof_buf.cur);
1016 prof_buf.base = newptr;
1018 *buf = prof_buf.base;