diff options
author | 2016-03-23 16:56:56 -0300 | |
---|---|---|
committer | 2016-03-23 17:09:53 -0300 | |
commit | 0741208a7cd4fc651316f1f861ad9e83495765fc (patch) | |
tree | 4df8373c3b525021e74395e0dc6ed6cdc1cb83f7 /tools/perf/util/strbuf.h | |
parent | perf probe: No need to use formatting strbuf method (diff) | |
download | linux-0741208a7cd4fc651316f1f861ad9e83495765fc.tar.gz linux-0741208a7cd4fc651316f1f861ad9e83495765fc.tar.bz2 linux-0741208a7cd4fc651316f1f861ad9e83495765fc.zip |
perf tools: Unexport some methods unused outside strbuf.c
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-nq1wvtky4mpu0nupjyar7sbw@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/strbuf.h')
-rw-r--r-- | tools/perf/util/strbuf.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/perf/util/strbuf.h b/tools/perf/util/strbuf.h index b73cbaaf93bc..ab9be0fbbd40 100644 --- a/tools/perf/util/strbuf.h +++ b/tools/perf/util/strbuf.h @@ -71,11 +71,7 @@ static inline void strbuf_setlen(struct strbuf *sb, size_t len) { } /*----- add data in your buffer -----*/ -static inline void strbuf_addch(struct strbuf *sb, int c) { - strbuf_grow(sb, 1); - sb->buf[sb->len++] = c; - sb->buf[sb->len] = '\0'; -} +void strbuf_addch(struct strbuf *sb, int c); void strbuf_add(struct strbuf *buf, const void *, size_t); static inline void strbuf_addstr(struct strbuf *sb, const char *s) { @@ -84,7 +80,6 @@ static inline void strbuf_addstr(struct strbuf *sb, const char *s) { __attribute__((format(printf,2,3))) void strbuf_addf(struct strbuf *sb, const char *fmt, ...); -void strbuf_addv(struct strbuf *sb, const char *fmt, va_list ap); /* XXX: if read fails, any partial read is undone */ ssize_t strbuf_read(struct strbuf *, int fd, ssize_t hint); |