summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move the "pure" tag into the body of __is_user_regsJosh Stone2009-05-222-2/+4
| | | | | | The "/* pure */" tag has no effect unless it is within the embedded-C body of a function. In this instance, they were accidentally moved out during the syscall cleanups.
* Use embedded-C for empty functionsJosh Stone2009-05-223-12/+6
| | | | | | | | | | The functions asmlinkage() and fastcall() are used to help access syscall parameters on i686. All other archs don't need this, but they still define empty functions to shield the callers from arch details. However, stap issues warnings for empty script-level functions. This patch changes them to "%{ /* pure */ %}" so there's no complaint, and they will still get optimized away.
* Uncomment 'name' variable in nd_syscall.lseek probe point.Przemyslaw Pawelczyk2009-05-221-1/+1
| | | | Signed-off-by: Josh Stone <jistone@redhat.com>
* Add missing probe points in nd_syscalls.stp.Przemyslaw Pawelczyk2009-05-221-0/+154
| | | | | | | | Add probe points for faccessat, fchmodat, fchownat, linkat and mknodat. Analogue of commits: a3d153e5, 335972be, 46e2c2c1, c815c982, dac6e242 and bad69f1d. Signed-off-by: Josh Stone <jistone@redhat.com>
* Remove return probes for exit[_group] in nd_syscalls.stp.Przemyslaw Pawelczyk2009-05-221-3/+4
| | | | | | Analogue of commit 39a8b0bc. Signed-off-by: Josh Stone <jistone@redhat.com>
* Unify formatting of nd_syscalls.stp.Przemyslaw Pawelczyk2009-05-221-110/+103
| | | | | | Rules were already specified in commit c0c1ccc6. Signed-off-by: Josh Stone <jistone@redhat.com>
* Restore staprun's support for REAL_UID/GIDJosh Stone2009-05-221-1/+14
| | | | | This is needed for run-stap so that stapio and all child processes can run as the originally invoking user instead of root.
* PR10182: clean uprobes.ko during rpm upgradeFrank Ch. Eigler2009-05-211-0/+7
|
* some versions of bundled elfutils needs m4 for buildingFrank Ch. Eigler2009-05-211-0/+1
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapWilliam Cohen2009-05-208-173/+258
|\
| * Fix gcc warning about Dwarf_Addr initialization.Mark Wielaard2009-05-211-1/+1
| | | | | | | | * translate.cxx (dump_unwindsyms): Initialize eh_frame to 0, not NULL.
| * PR10177: init/kill time in sleepy context onlyJosh Stone2009-05-205-44/+42
| | | | | | | | | | | | | | | | | | | | | | | | Previously, _stp_init_time and _stp_kill_time were being called from begin/end/error probes, which will run with preemption disabled. The BUG reported on RT kernels showed that cpufreq_unregister_notifier can end up sleeping, which violates our preemption block. This patch moves the init/kill into systemtap_module_init/exit, where it is safe to sleep. The code maintains a new predicate with the define STAP_NEED_GETTIMEOFDAY, so we don't still incur any timer overhead if it's not used.
| * Properly read eh_frame and pass is_ehframe correctly.Mark Wielaard2009-05-202-8/+12
| | | | | | | | | | | | | | | | | | * runtime/unwind.c (adjustStartLoc): Add extra dbug_unwind. (_stp_search_unwind_hdr): Always pass true for is_ehframe. (unwind_frame): Properly pass through is_ehframe to adjustStartLoc(). (unwind): Add extra dbug_unwind. * translate.cxx (dump_unwindsyms): Output and use correct eh_frame and eh_len.
| * Use debug_frame table, then fallback to eh_frame when necessary.Mark Wielaard2009-05-201-24/+39
| | | | | | | | | | | | | | * runtime/unwind.c (unwind): Call new unwind_frame() first with debug_frame data, then if that wasn't able to unwind again with eh_frame data. (unwind_frame): Adapted version of old unwind() function that takes a table, table length and whether it is an eh_frame table.
| * Pass and use ptrType and is_ehframe to unwind adjustStartLoc.Mark Wielaard2009-05-201-53/+66
| | | | | | | | | | | | | | * runtime/unwind.c (adjustStartLoc): Add ptrType and is_ehframe as arguments. Use these to adjust location when necessary. (DEBUG_UNWIND): Move block before adjustStartLoc. Pass false for is_ehframe throughout.
| * Fetch and store both debug_frame and eh_frame tables.Mark Wielaard2009-05-204-58/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/sym.h (_stp_module): Remove unwind_data, unwind_data_len and unwind_is_ehframe fields. Add debug_frame, eh_frame, debug_frame_len, eh_frame_len and eh_frame_addr fields. * runtime/unwind.c: Use debug_frame and debug_frame_len instead of unwind_data and unwind_data_len throughout. (cie_for_fde): Take unwind_data and is_ehframe as direct arguments. * runtime/unwind/unwind.h (cie_for_fde): New function declaration. * translate.cxx (get_unwind_data): Fetch and return both debug_frame and eh_frame tables. (dump_unwindsyms): Dump both debug_frame and eh_frame tables.
* | Add the schedtimes.stp and associated schedtimes.meta files to the examples.William Cohen2009-05-206-0/+232
|/
* PR10172 sdt.h on powerpc Error: junk at end of line: `0'Mark Wielaard2009-05-201-1/+1
| | | | | | * includes/sys/sdt.h (STAP_NOP): __powerpc__ doesn't want an extra 0. Tested-by: Mahesh Jagannath Salgaonkar <mahesh@linux.vnet.ibm.com>
* Adapt sid to latest kernelWenji Huang2009-05-191-0/+4
|
* Disable building grapher code in rpm.William Cohen2009-05-191-1/+8
|
* Fix alignment of probe aliases in syscalls(|2).stp.Przemyslaw Pawelczyk2009-05-192-736/+736
| | | | | | | Align probe points in probe aliases to equal sign using spaces as it's already done in nd_syscalls.stp. Signed-off-by: Josh Stone <jistone@redhat.com>
* Unify formatting of syscalls.stp and syscalls2.stp.Przemyslaw Pawelczyk2009-05-192-1059/+1407
| | | | | | | | | | | | | | | Rules: - Specify probe points for aliases starting from the alias declaration line and with one probe point per line. - Use K&R indent style -- probe alias/point/function opening brace goes to the line following the declaration, other opening braces are kept on the same line as the control statements. - Indent using tabs. - Surround operators with spaces. - Put spaces after commas. - Avoid trailing whitespaces. Signed-off-by: Josh Stone <jistone@redhat.com>
* Correct misnamed variables in syscalls.stp.Przemyslaw Pawelczyk2009-05-191-33/+27
| | | | | | | Rename variables accordingly to argument names used in man pages in syscall.(faccess|fchmod|fchown|link|mknod)at probe points. Signed-off-by: Josh Stone <jistone@redhat.com>
* Enhance -x option checking to only accept valid pidSunzen Wang2009-05-191-1/+6
| | | | Fix: Enhance -x option checking to only accept valid pid
* Enhance -s option checking to only accept valid size numberSunzen Wang2009-05-191-2/+2
| | | | Fix: Enhance -s option checking to only accept valid size number
* Fix: Enhance -p option checking so as to just accept valid numberSunzen Wang2009-05-191-2/+3
|
* YAAU (Yet Another AUTHORS Update)Josh Stone2009-05-181-0/+2
|
* Complete the names-to-numbers conversion in nd_syscalls.stp.Przemyslaw Pawelczyk2009-05-181-980/+1711
| | | | | | | | Replace in-scope variables references with *_arg functions. Use 'kprobe' family of probes instead of 'kernel' family for dwarfless probing. Also fix a few typos and unify formatting. Signed-off-by: Josh Stone <jistone@redhat.com>
* PR10171 workaround.David Smith2009-05-181-0/+5
| | | | * runtime/itrace.c: To avoid ia64 lockups, disable itrace on ia64.
* PR10091 fixes.David Smith2009-05-182-30/+147
| | | | | | | | * runtime/itrace.c (usr_itrace_report_signal): Add a workaround for ppc-specific problem. * testsuite/systemtap.base/itrace.exp: Improved tests. Improved test completeness. Will also no longer give fails for systems that don't support single or block step (will give xfails instead).
* Fix typo in mq_timedreceive probe point.Przemyslaw Pawelczyk2009-05-181-1/+1
| | | | * tapset/syscalls.stp: Rename abs_timout_uaddr to abs_timeout_uaddr.
* Merge branch 'master' of git://sources.redhat.com/git/systemtapMark Wielaard2009-05-1822-4861/+5591
|\
| * Make all tapsets' TOK_FOO constantJosh Stone2009-05-157-34/+34
| |
| * Merge branch 'tapsets-cleanup'Josh Stone2009-05-1515-4826/+5556
| |\
| | * Privatize many dwflpp membersJosh Stone2009-05-152-59/+59
| | | | | | | | | | | | | | | This helps make it more obvious which methods are accessed by external classes, which should help in refactoring.
| | * Simplify our unordered_map typedefsJosh Stone2009-05-152-18/+9
| | |
| | * Break the dwflpp dependence on query_cuJosh Stone2009-05-153-8/+10
| | |
| | * Break the dwflpp dependence on query_moduleJosh Stone2009-05-153-15/+5
| | |
| | * Merge the dwflpp::query_cu_..._address methodsJosh Stone2009-05-153-25/+9
| | | | | | | | | | | | | | | | | | | | | | | | The method query_cu_containing_global_address was only called by query_cu_containing_module_address, and the latter was just doing a simple argument transform. They are now merged into a single method, query_cu_containing_address. The function module_address_to_global is also merged here at its only call site.
| | * Don't shadow dwlfpp::dwfl in loc2c_emit_addressJosh Stone2009-05-151-2/+1
| | |
| | * Remove unused dwflpp methodsJosh Stone2009-05-152-43/+0
| | | | | | | | | | | | | | | | | | | | | | | | These three methods had no callers, and are thus obsolete: dwflpp::focus_on_module_containing_global_address(Dwarf_Addr a) dwflpp::global_address_to_module(Dwarf_Addr a) dwflpp::cu_name_matches(string pattern)
| | * Move dfwlpp into its own fileJosh Stone2009-05-1215-4762/+5595
| | | | | | | | | | | | | | | It's not a terribly clean split, but moving it helps reveals some of the knots that need to be untangled.
| | * Consolidate dwflpp setupJosh Stone2009-05-111-67/+41
| | |
| * | Add stap-server buildreqs: nss-tools and pkgconfig.David Smith2009-05-151-1/+1
| | |
* | | Tidy/tighten DEBUG_UNWIND ptrType a bit.Mark Wielaard2009-05-151-14/+13
|/ / | | | | | | | | | | | | * runtime/unwind.c (_stp_enc_hi_name): Include prefix for hi == 0. (_stp_enc_lo_name): Don't include prefix. (_stp_eh_enc_name): Always include hi_name. (unwind): Always include newline in dbug_unwind() calls.
* | Mark all testsuite/parseko/cmdline21.stp as executable.Mark Wielaard2009-05-155-0/+0
| |
* | flightrec3.exp uses cpus as array, so rename skipped.exp cpus var to nr_cpus.Mark Wielaard2009-05-151-3/+3
| | | | | | | | | | | | | | Works around a make installcheck issue that resulted in skipped.exp failing because of "ERROR: can't set "cpus": variable is array" * testsuite/systemtap.base/skipped.exp: Renamed cpus variable to nr_cpus.
* | Set explicit longer, 60 second, timeout for alternatives.exp.Mark Wielaard2009-05-151-2/+3
| | | | | | | | | | | | | | | | In an make installcheck run this is the first script that goes through the full kernel debuginfo which might take a bit. * testsuite/systemtap.base/alternatives.exp: Set timeout to 60, verbose log EOF or TIMEOUT when they occur.
* | Fixed comma space, space dot typos in various man pages.Mark Wielaard2009-05-153-19/+19
| | | | | | | | Reported-by: K.Prasad <prasad@linux.vnet.ibm.com>
* | Fixed few typos in various man pages found by a spellchecker.Petr Muller2009-05-154-12/+12
| |