summaryrefslogtreecommitdiffstats
path: root/runtime/string.c
Commit message (Collapse)AuthorAgeFilesLines
* 2006-09-22 Martin Hunt <hunt@redhat.com>hunt2006-09-221-10/+10
| | | | | * print.c: Replace STP_PRINT_BUF_LEN with STP_BUFFER_SIZE. * string.c: Ditto.
* 2006-09-21 Martin Hunt <hunt@redhat.com>hunt2006-09-221-4/+4
| | | | | | | | | | | PR 3232 * print.c (_stp_print_init): New. Alloc per-cpu buffers. (_stp_print_cleanup): New. Free per-cpu buffers. (_stp_print_flush): Use per_cpu_ptr(). * string.c (_stp_sprintf): Ditto. (_stp_vsprintf): Ditto. (_stp_string_cat_cstr): Ditto. (_stp_string_cat_char): Ditto.
* 2006-09-18 Martin Hunt <hunt@redhat.com>hunt2006-09-181-31/+44
| | | | | | | | | | | | | | | | * print.c (_stp_print_flush): Rewrite so one version works for relayfs or procfs. Use proper per-cpu functions. (_stp_reserve_bytes): New function. Reserve bytes in the output buffer. (_stp_print_binary): New function. Write a variable number of 64-bit values directly into the output buffer. * string.c (_stp_sprintf): Rewrite using new per-cpu buffers. (_stp_vsprintf): Ditto. (_stp_string_cat_cstr): Ditto. (_stp_string_cat_char): Ditto. * runtime.h: Set defaults for MAXTRYLOCK and TRYLOCKDELAY to make runtime tests in bench2 happy.
* PR 3037wcohen2006-08-141-1/+0
| | | | | * string.c: * print.c: Remove includes for <linux/config.h>.
* Minor cleanuphunt2006-07-121-3/+3
|
* 2006-07-11 Martin Hunt <hunt@redhat.com>hunt2006-07-121-8/+11
| | | | * string.c (_stp_text_str): Use __get_user().
* 2006-07-11 Martin Hunt <hunt@redhat.com>hunt2006-07-111-15/+33
| | | | | | * string.c (_stp_text_str): Add a parameter to support userspace strings too. * string.h: (_stp_text_str): Fix proto.
* 2006-05-30 Martin Hunt <hunt@redhat.com>hunt2006-05-301-0/+99
| | | | | * string.c (_stp_text_str): New function. * string.h (_stp_text_str): Declare.
* 2006-04-10 Martin Hunt <hunt@redhat.com>hunt2006-04-111-1/+1
| | | | | * string.c (_stp_string_cat_cstr): No need to copy terminating 0.
* 2006-04-09 Martin Hunt <hunt@redhat.com>hunt2006-04-101-5/+5
| | | | | | | | | | | * print.c (_stp_print_flush): Send 'len" bytes instead of 'len+1', which included terminating 0. * string.c (_stp_sprintf): Call _stp_vsnprintf() instead of vsnprintf(). (_stp_vsprintf): Ditto. * vsprintf.c: New file.
* 2006-03-30 Martin Hunt <hunt@redhat.com>hunt2006-03-301-2/+2
| | | | * string.c (_stp_string_cat_cstr): Use memcpy() instead of strncpy().
* 2005-10-31 Martin Hunt <hunt@redhat.com>hunt2005-10-311-1/+10
| | | | * ALL: Cleanup copyrights.
* Fix for PR 1455trz2005-10-141-0/+1
|
* 2005-07-01 Martin Hunt <hunt@redhat.com>hunt2005-07-011-1/+1
| | | | | | | * string.c (_stp_string_init): CAll stp_error() on bad init. * list.c (_stp_list_clear): Call _stp_warn().
* 2005-06-18 Martin Hunt <hunt@redhat.com>hunt2005-06-181-29/+1
| | | | | | | | | | | | | | | | | | | | | | | * counter.c: New file. Counter aggregations. * stat.c: New file. Stat aggregations. * stat.h: Header file for stats. * map-int.c: New file. Support for int64 values. * map-stat.c: New file. Support for stat values. * map-str.c: New file. Support for string values. * map-values.c: Now just includes the necessary map-*.c files. * stat-common.c: New file. Stats stuff common to Stats and maps containing stats. * Doxyfile: Bumped version to 0.6. * README: Renamed README.doc and reorganized.
* 2005-06-02 Martin Hunt <hunt@redhat.com>hunt2005-06-021-0/+1
| | | | | | | * string.c (_stp_string_cat_cstr): Be sure result is always terminated. * print.c (_stp_vprintf): Fix typo.
* 2005-05-31 Martin Hunt <hunt@redhat.com>hunt2005-05-311-0/+23
| | | | | | | | | * map.c (_stp_map_print): Now takes a format string instead of a name. * map.h (foreach): Update macro. * string.c (_stp_string_cat_char): New function. Append a char to a string.
* 2005-05-26 Martin Hunt <hunt@redhat.com>hunt2005-05-261-1/+2
| | | | | | | | * current.c (_stp_sprint_regs): Implement for i386. * sym.c (_stp_symbol_sprint): Check name before trying to print it. (_stp_symbol_print): Change to macro that calls _stp_symbol_sprint().
* Add _stp_stdout.hunt2005-05-191-44/+82
|
* Rewritten maps and other updated files.hunt2005-05-171-0/+9
|
* i386 fixes.hunt2005-04-111-2/+2
|
* *** empty log message ***hunt2005-04-071-26/+58
|
* Update to use relayfs.hunt2005-04-071-0/+130