Home
last modified time | relevance | path

Searched refs:prof_buf (Results 1 – 1 of 1) sorted by relevance

/external/e2fsprogs/lib/support/
Dprofile.c978 struct prof_buf { struct
984 static void add_data_to_buffer(struct prof_buf *b, const void *d, size_t len) in add_data_to_buffer() argument
1007 add_data_to_buffer((struct prof_buf *)data, str, strlen(str)); in dump_profile_to_buffer_cb()
1013 struct prof_buf prof_buf = { 0, 0, 0, 0 }; in profile_write_tree_to_buffer() local
1015 dump_profile(root, 0, dump_profile_to_buffer_cb, &prof_buf); in profile_write_tree_to_buffer()
1016 if (prof_buf.err) { in profile_write_tree_to_buffer()
1020 add_data_to_buffer(&prof_buf, "", 1); /* append nul */ in profile_write_tree_to_buffer()
1021 if (prof_buf.max - prof_buf.cur > (prof_buf.max >> 3)) { in profile_write_tree_to_buffer()
1022 char *newptr = realloc(prof_buf.base, prof_buf.cur); in profile_write_tree_to_buffer()
1024 prof_buf.base = newptr; in profile_write_tree_to_buffer()
[all …]