Lines Matching refs:sb
1798 struct strbuf sb; in annotation_br_cntr_abbr_list() local
1803 strbuf_init(&sb, /*hint=*/ 0); in annotation_br_cntr_abbr_list()
1805 if (header && strbuf_addf(&sb, "# Branch counter abbr list:\n")) in annotation_br_cntr_abbr_list()
1811 if (header && strbuf_addf(&sb, "#")) in annotation_br_cntr_abbr_list()
1814 if (strbuf_addf(&sb, " %s = %s\n", pos->name, pos->abbr_name)) in annotation_br_cntr_abbr_list()
1818 if (header && strbuf_addf(&sb, "#")) in annotation_br_cntr_abbr_list()
1820 if (strbuf_addf(&sb, " '-' No event occurs\n")) in annotation_br_cntr_abbr_list()
1823 if (header && strbuf_addf(&sb, "#")) in annotation_br_cntr_abbr_list()
1825 if (strbuf_addf(&sb, " '+' Event occurrences may be lost due to branch counter saturated\n")) in annotation_br_cntr_abbr_list()
1828 *str = strbuf_detach(&sb, NULL); in annotation_br_cntr_abbr_list()
1832 strbuf_release(&sb); in annotation_br_cntr_abbr_list()
1846 struct strbuf sb; in annotation_br_cntr_entry() local
1848 strbuf_init(&sb, /*hint=*/ 0); in annotation_br_cntr_entry()
1864 if (strbuf_addstr(&sb, pos->abbr_name)) in annotation_br_cntr_entry()
1868 if (strbuf_addstr(&sb, "=-")) in annotation_br_cntr_entry()
1871 if (strbuf_addf(&sb, "=%d", avg)) in annotation_br_cntr_entry()
1875 if (strbuf_addch(&sb, '+')) in annotation_br_cntr_entry()
1878 if (strbuf_addch(&sb, ' ')) in annotation_br_cntr_entry()
1882 if ((i < br_cntr_nr - 1) && strbuf_addch(&sb, ',')) in annotation_br_cntr_entry()
1887 if (strbuf_addch(&sb, '|')) in annotation_br_cntr_entry()
1891 if (strbuf_addch(&sb, '-')) in annotation_br_cntr_entry()
1909 if (strbuf_addstr(&sb, pos->abbr_name)) in annotation_br_cntr_entry()
1914 if (strbuf_addch(&sb, '+')) in annotation_br_cntr_entry()
1922 if (strbuf_addch(&sb, ' ')) in annotation_br_cntr_entry()
1927 if (!verbose && strbuf_addch(&sb, br_cntr_nr ? '|' : ' ')) in annotation_br_cntr_entry()
1930 *str = strbuf_detach(&sb, NULL); in annotation_br_cntr_entry()
1934 strbuf_release(&sb); in annotation_br_cntr_entry()