summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added cpuid().hien2005-12-151-0/+3
|
* *** empty log message ***hunt2005-12-151-0/+22
|
* *** empty log message ***hunt2005-12-151-22/+0
|
* 2005-12-14 Kevin Stafford <krstaffo@us.ibm.com>kevinrs2005-12-151-0/+9
| | | | | | | | | | | * 2.6.14/syscalls.stp: added 2.6.14 syscalls to tapset * 2.6.14/i686/syscalls.stp: added i386 arch specific syscalls to tapset for kernel 2.6.14 * 2.6.9-24.ELsmp/syscalls.stp: added 2.6.9-24.ELsmp syscalls to tapset * 2.6.9-24.ELsmp/x86_64/syscalls.stp: added x86_64 arch specific syscalls to tapset for kernel 2.6.9-24.ELsmp * system_calls.stp: removed generic system_calls.stp tapset.
* 2005-12-14 Kevin Stafford <krstaffo@us.ibm.com>kevinrs2005-12-153-560/+5413
| | | | | | | | | | * 2.6.14/syscalls.stp: added 2.6.14 syscalls to tapset * 2.6.14/i686/syscalls.stp: added i386 arch specific syscalls to tapset for kernel 2.6.14 * 2.6.9-24.ELsmp/syscalls.stp: added 2.6.9-24.ELsmp/ syscalls to tapset * system_calls.stp: removed generic system_calls.stp tapset.
* 2005-12-12 Kevin Stafford <krstaffo@us.ibm.com>kevinrs2005-12-151-0/+214
| | | | | * syscalls.stp: added x86_64 arch specific syscalls to tapset for kernel 2.6.9-24.ELsmp
* New testcasehunt2005-12-141-0/+22
|
* 2005-12-14 Martin Hunt <hunt@redhat.com>hunt2005-12-142-4/+14
| | | | | | | * tapset/system_calls.stp (epoll.ctl): Temporarily remove references to $op and $event because gcc 4.0.2 can't find them. (epoll.wait): Ditto for $maxevents.
* 2005-12-14 Martin Hunt <hunt@redhat.com>hunt2005-12-145-22/+71
| | | | | | | | | | | | | * pmap-gen.c (_stp_pmap_new_*): Initialize lock. (_stp_pmap_set_*): Lock map while in use. (_stp_pmap_add_*): Lock map while in use. (_stp_pmap_get_cpu): Ditto. (_stp_pmap_get): Lock each per-cpu map. * map-gen.c: Define and use NULLRET for a NULL return value. * map.c (_stp_pmap_clear): New function. (_stp_pmap_agg): Lock each per-cpu map as it gets aggregated.
* 2005-12-14 Martin Hunt <hunt@redhat.com>hunt2005-12-142-0/+17
| | | | * emul.h: Add fake spinlock funcs.
* 2005-12-13 Martin Hunt <hunt@redhat.com>hunt2005-12-132-1/+6
| | | | | * map.c (_stp_map_sortn): Set a limit of 30 for n. Automatically call _stp_map_sort() if more is requested.
* 2005-12-13 Frank Ch. Eigler <fche@redhat.com>fche2005-12-132-0/+6
| | | | | * tapsets.cxx (var_expanding_copy_visitor::visit_target): Transcribe token pointer to synthesized functiondecl.
* * reformattedfche2005-12-131-6/+11
|
* 2005-12-12 Josh Stone <joshua.i.stone@intel.com>jistone2005-12-122-37/+51
| | | | | | * tapsets.cxx (profile_derived_probe::*,profile_builder::build): Do kernel version checks at translation time, using the same internal mechanisms as the preprocessor - a la %( kernel_v < "2.6.10" %? ... %: ... %)
* 2005-12-12 Josh Stone <joshua.i.stone@intel.com>jistone2005-12-122-36/+15
| | | | | | * tapset/context.stp (execname,pid,tid,ppid,pexecname,gid,egid,uid,euid): Removed in_interrupt checks and other pointer checks. We now operate on the assumption that "current" and its related data are always valid.
* 2005-12-12 Kevin Stafford <krstaffo@us.ibm.com>kevinrs2005-12-121-0/+3
| | | | | * main.cxx (main): Added arch directory to the existing kernel-version-sensitive search path.
* 2005-12-12 Kevin Stafford <krstaffo@us.ibm.com>kevinrs2005-12-121-6/+14
| | | | | * main.cxx (main): Added arch directory to the existing kernel-version-sensitive search path.
* 2005-12-12 Frank Ch. Eigler <fche@redhat.com>fche2005-12-122-0/+5
| | | | * translate.cxx (translate_pass): Emit #include <linux/profile.h>.
* Stop additional systemtap probes from collecting data when exit()wcohen2005-12-122-0/+6
| | | | occurs.
* A long overdue update of cscope.files. This was generated with thejistone2005-12-121-54/+79
| | | | | | | | | | | | following command: echo -q >cscope.files && find -name '*.[ch]' -o -name '*.cxx' |sort >>cscope.files The sorting is to make sure that future updates show a more consistant diff between versions in CVS. (note: it may be worthwhile to add a 'cscope' target to the Makefile, and stop storing a static cscope.files list in CVS...)
* 2005-12-12 Frank Ch. Eigler <fche@redhat.com>fche2005-12-127-11/+78
| | | | | | | | | | | | | | | | | Fix parse tree pretty-printer. * staptree.h (print_format): Add raw_components field. * parse.cxx (parse_symbol): Set it. * staptree.cxx (lex_cast_qstring): Copy it here too. (binary_expression::print): Add a space around operator, due to lexical ambiguity (expr % paren-expr) vs %( preprocessor op. (array_in:: foreach_loop:: arrayindex::print): Print base as indexable. (print_format::string_to_components): Use parse_error, not semantic. (print_format::print): Properly quote formatting string. Print histogram argument. * translate.cxx (visit_print_format): Properly quote formatting string. (varlock): Reword lock timeout error message. * testsuite/buildok/printf.stp: Add some quoting troublemakers. * testsuite/parseok/unparser.stp: New file.
* Fix typo in last change.roland2005-12-122-2/+2
|
* .roland2005-12-121-0/+29
|
* 2005-12-11 Roland McGrath <roland@redhat.com>roland2005-12-122-70/+338
| | | | | | | | | | | | | | | | | | | | PR 1916 * configure.ac: Grok --with-elfutils. * Makefile.am [BUILD_ELFUTILS] (install-elfutils, stamp-elfutils): New targets. [BUILD_ELFUTILS] (stap_LDFLAGS, stap_LDFLAGS): Add flags to point at local elfutils build. [BUILD_ELFUTILS] (BUILT_SOURCES): Add stamp-elfutils. [BUILD_ELFUTILS] (stap_DEPENDENCIES): New variable. [BUILD_ELFUTILS] (lib-elfutils/libdw.so): New target. [BUILD_ELFUTILS] (install-exec-local): Depend on install-elfutils. (loc2c_test_LDADD): Set this to $(stap_LDADD). (loc2c_test_CPPFLAGS, loc2c_test_LDFLAGS): New variables. * Makefile.in: Regenerated. * compile: New file from automakeland. * systemtap.spec.in (elfutils_version): Require 0.118 or later. [bundled_elfutils]: Remove old hacks for building elfutils, and rely on configure --with-elfutils instead.
* 2005-12-11 Roland McGrath <roland@redhat.com>roland2005-12-121-10/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | PR 1916 * configure.ac: Grok --with-elfutils. * Makefile.am [BUILD_ELFUTILS] (install-elfutils, stamp-elfutils): New targets. [BUILD_ELFUTILS] (stap_LDFLAGS, stap_LDFLAGS): Add flags to point at local elfutils build. [BUILD_ELFUTILS] (BUILT_SOURCES): Add stamp-elfutils. [BUILD_ELFUTILS] (stap_DEPENDENCIES): New variable. [BUILD_ELFUTILS] (lib-elfutils/libdw.so): New target. [BUILD_ELFUTILS] (install-exec-local): Depend on install-elfutils. (loc2c_test_LDADD): Set this to $(stap_LDADD). (loc2c_test_CPPFLAGS, loc2c_test_LDFLAGS): New variables. * Makefile.in: Regenerated. * compile: New file from automakeland. * systemtap.spec.in (elfutils_version): Require 0.118 or later. [bundled_elfutils]: Remove old hacks for building elfutils, and rely on configure --with-elfutils instead. * Makefile.am (pkglibexecdir): New variable. (AM_CPPFLAGS): Use it. (pkglibexec_PROGRAMS): Set this instead of noinst_PROGRAMS with stpd. (pkglibexec_SCRIPTS, CLEANFILES): New variables. (install-exec-local): Target removed. * runtest.sh: Set LD_LIBRARY_PATH when lib-elfutils is in use.
* 2005-12-11 Roland McGrath <roland@redhat.com>roland2005-12-123-55/+120
| | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Bump version to 0.5.1 for test builds. * systemtap.spec.in: Remove ExclusiveArch. * configure: Regenerated. PR 1916 * configure.ac: Grok --with-elfutils. * Makefile.am [BUILD_ELFUTILS] (install-elfutils, stamp-elfutils): New targets. [BUILD_ELFUTILS] (stap_LDFLAGS, stap_LDFLAGS): Add flags to point at local elfutils build. [BUILD_ELFUTILS] (BUILT_SOURCES): Add stamp-elfutils. [BUILD_ELFUTILS] (stap_DEPENDENCIES): New variable. [BUILD_ELFUTILS] (lib-elfutils/libdw.so): New target. [BUILD_ELFUTILS] (install-exec-local): Depend on install-elfutils. (loc2c_test_LDADD): Set this to $(stap_LDADD). (loc2c_test_CPPFLAGS, loc2c_test_LDFLAGS): New variables. * Makefile.in: Regenerated. * compile: New file from automakeland. * systemtap.spec.in (elfutils_version): Require 0.118 or later. [bundled_elfutils]: Remove old hacks for building elfutils, and rely on configure --with-elfutils instead.
* 2005-12-11 Roland McGrath <roland@redhat.com>roland2005-12-121-6/+11
| | | | | | | | | * Makefile.am (pkglibexecdir): New variable. (AM_CPPFLAGS): Use it. (pkglibexec_PROGRAMS): Set this instead of noinst_PROGRAMS with stpd. (pkglibexec_SCRIPTS, CLEANFILES): New variables. (install-exec-local): Target removed. * runtest.sh: Set LD_LIBRARY_PATH when lib-elfutils is in use.
* .roland2005-12-121-1/+5
|
* 2005-12-11 Roland McGrath <roland@redhat.com>roland2005-12-121-1/+1
| | | | * loc2c-test.c (get_location): Fix function name in error message.
* 2005-12-09 Graydon Hoare <graydon@redhat.com>graydon2005-12-103-21/+229
| | | | | | | | | | | | | | | | * elaborate.cxx (alias_expansion_builder::build): Fix comment typo. * tapsets.cxx (symbol_cache): New class. (dwflpp::cache): Add cache. (dwflpp::pattern_limited_cus): New member. (dwflpp::pattern_limited_funcs): New member. (dwflpp::limit_search_to_function_pattern): New method. (dwflpp::iterate_over_cus): Modify to use cached, limited sets. (dwflpp::iterate_over_functions): Likewise. (dwarf_builder::user_dw): New member. (dwarf_builder::kern_dw): New member. (dwarf_builder::~dwarf_builder): Add dtor. (query_module): Call dwflpp::limit_search_to_function_pattern. (dwarf_builder::build): Initialize persistent dwflpp members on demand.
* 2005-12-08 Graydon Hoare <graydon@redhat.com>graydon2005-12-093-6/+58
| | | | | | | | | * translate.cxx (delete_statement_operand_visitor::visit_arrayindex): Prohibit deleting histogram buckets. (c_tmpcounter::visit_array_in): Direct to visit_arrayindex. (c_unparser::visit_array_in): Likewise. * testsuite/buildok/histogram_operator_in.stp: New test.
* 2005-12-08 Frank Ch. Eigler <fche@elastic.org>fche2005-12-085-16/+61
| | | | | | | | | | | | | | | PR 1937 * buildrun.cxx (run_pass): Pass new "-d PID" option to stpd. Set SIGHUP to SIG_IGN too. 2005-12-08 Frank Ch. Eigler <fche@elastic.org> PR 1937 * stpd.c (main): Support new "-d" option. (usage): Document it. * librelay.c (driver_poll): New function to react to death of driver process. (stp_main_loop): Call it if "-d PID" given. Treat SIGHUP like others.
* 2005-12-08 Martin Hunt <hunt@redhat.com>hunt2005-12-082-2/+34
| | | | | | | * map.c (_new_map_create): Only increment map size if a node was moved off the free list. (_stp_map_size): New function. (_stp_pmap_size): New function.
* 2005-12-08 Martin Hunt <hunt@redhat.com>hunt2005-12-085-0/+190
| | | | | * maps/map.test: Add size test. * pmaps/pmap.test: Add size test.
* 2005-12-07 Graydon Hoare <graydon@redhat.com>graydon2005-12-084-39/+136
| | | | | | | | | | | | * staptree.cxx (traversing_visitor::visit_foreach_loop): Visit the base indexable of the foreach loop. * translate.cxx (c_tmpcounter::visit_foreach_loop): Implement histogram bucket iteration arm. (c_unparser::visit_foreach_loop): Likewise. (c_tmpcounter::visit_arrayindex): Fix typo. * testsuite/buildok/iterate_histogram_buckets.stp: New test.
* * system_calls.stpkevinrs2005-12-071-1/+1
| | | | * trivial mispelling corrected
* 2005-12-07 Martin Hunt <hunt@redhat.com>hunt2005-12-072-4/+19
| | | | | * translate.cxx (mapvar::fini): Use _stp_pmap_del() on pmaps. (emit_global): For pmaps, use "PMAP" instead of "MAP".
* 2005-12-07 Martin Hunt <hunt@redhat.com>hunt2005-12-072-40/+4
| | | | | * agg/agg.test: Adjust results to match the more compact histogram format.
* 2005-12-07 Martin Hunt <hunt@redhat.com>hunt2005-12-073-95/+9
| | | | | * alloc.c: Remove all unused functions. * io.c: Add vprintf() prototype.
* 2005-12-07 Martin Hunt <hunt@redhat.com>hunt2005-12-076-295/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR1923 * map.h (struct map_root): Remove membuf. (struct pmap): Define. (PMAP): Declare. * map.c (_stp_map_init): Use kmalloc() to allocate individual nodes instead of using vmalloc() to allocate one big chunk. (_stp_map_new): Use kmalloc. (_stp_pmap_new): Use kmalloc. Return a PMAP. (__stp_map_del): New function. Free all the nodes in a map. (_stp_map_del): Call __stp_map_del() then free map struct. (_stp_pmap_del): Takes a PMAP. Calls __stp_map_del() for each cpu. (_stp_pmap_printn_cpu): Change arg to PMAP. (_stp_pmap_agg): Change arg to PMAP. (_stp_pmap_get_agg): Change arg to PMAP. * map-stat.c (_stp_pmap_new_hstat_linear): Use PMAP instead of MAP. Fix allocations. (_stp_pmap_new_hstat_log): Ditto. * pmap-gen.c Fix all functions to take or return PMAPS instead of MAPS. * alloc.c: Remove everything except kmalloc_node(). All runtime code now uses kmalloc() directly.
* 2005-12-07 Martin Hunt <hunt@redhat.com>hunt2005-12-0713-75/+24
| | | | | | | | | | * pmaps/*.c: Change pmap type from MAP to PMAP. * pmaps/pmap.test: Adjust results to match the more compact histogram format. * maps/map.test: Adjust results to match the more compact histogram format.
* * system_calls.stp:kevinrs2005-12-072-4072/+4469
| | | | | | | | | | | | | * alphabatized for easier navigation * removed comments from reference to void pointer args * removed reference to some unsafe copy_from_user funcs * added final aliases for i386 * aux_syscalls.stp * commented out embedded C functions that made use of copy_from_user(), a function that might sleep and that was causing Oops on my machine when sleep was called from invalid context.
* 2005-12-06 Frank Ch. Eigler <fche@elastic.org>fche2005-12-072-23/+65
| | | | | | | PR 1934. * tapsets.cxx (resolve_prologue_endings2): Add new heuristic for tail-call optimized functions. (query_func_info): Make somewhat less verbose.
* 2005-12-06 Graydon Hoare <graydon@redhat.com>graydon2005-12-072-1/+18
| | | | | * translate.cxx (visit_print_format): Explicitly Cast int64_t (pe_long) args to (long long) in generated code, for portability.
* 2005-12-05 Frank Ch. Eigler <fche@elastic.org>fche2005-12-055-0/+8
| | | | * *.cxx: Add <cassert> #include as needed.
* 2005-12-02 Graydon Hoare <graydon@redhat.com>graydon2005-12-026-55/+264
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * elaborate.cxx (mutated_var_collector): Forward traversal portion of calls to base class. (mutated_var_collector::visit_arrayindex): Resolve arrayindex-into-histogram expression as pe_long. (typeresolution_info::visit_print_format): Traverse into histogram if present. * parse.cxx (parse_symbol): Handle parse ambiguity surrounding print(@hist_op(...)[...]). * staptree.cxx (traversing_visitor::visit_arrayindex): Visit base member of arrayindex. * translate.cxx (c_unparser::histogram_index_check): New method. (var::hist): Fix bug. (var::buckets): New method. (stmt_expr::stmt_expr): Print with newline. (c_unparser::load_map_indices): Handle indexing-histogram case. (c_tmpcounter::visit_arrayindex): Likewise. (c_unparser::visit_arrayindex): Likewise. (c_tmpcounter_assignment::visit_arrayindex): Throw error when user attempts to write to histogram bucket. (c_unparser_assignment::visit_arrayindex): Likewise. * testsuite/buildok/print_histogram_entry.stp: New test.
* typofche2005-12-021-1/+1
|
* typofche2005-12-021-1/+1
|
* * add %changelog clausefche2005-12-021-0/+4
|
* 2005-12-02 Frank Ch. Eigler <fche@elastic.org>fche2005-12-025-12/+123
| | | | | | | * configure.ac: Bump version number. * stap.1.in: Document some of the new print/stats stuff. * configure: Regenerated. * systemtap.spec.in: Enable ia64 and ppc builds.