]> sourceware.org Git - systemtap.git/log
systemtap.git
10 years agoPR6941: also skip prologue search for function(NUM) probes
Jonathan Lebon [Fri, 28 Feb 2014 18:57:38 +0000 (13:57 -0500)]
PR6941: also skip prologue search for function(NUM) probes

Whoops! That should have been part of the previous commit as well.

10 years agoPR6941: skip prologue-skipping for GCC optimized code
Jonathan Lebon [Fri, 28 Feb 2014 17:25:37 +0000 (12:25 -0500)]
PR6941: skip prologue-skipping for GCC optimized code

If the code was compiled using -g -O2, then prologue searching is not
necessary since location data is valid there. We determine this by
looking for DW_AT_location attributes with data of form
DW_FORM_sec_offset (see GDB's PR12573 and also RHBZ612253#c6).

10 years agodwflpp: new is_gcc_producer() function
Jonathan Lebon [Fri, 28 Feb 2014 16:41:10 +0000 (11:41 -0500)]
dwflpp: new is_gcc_producer() function

10 years agoutil.cxx: make tokenize() args optional in declaration
Jonathan Lebon [Fri, 28 Feb 2014 17:07:28 +0000 (12:07 -0500)]
util.cxx: make tokenize() args optional in declaration

10 years agoThe systemtap-server rpm now requires 'openssl'.
David Smith [Thu, 27 Feb 2014 22:15:38 +0000 (16:15 -0600)]
The systemtap-server rpm now requires 'openssl'.

* systemtap.spec: Make 'systemtap-server' require 'openssl', since the
  server needs openssl to generate MOKs.
* stap-serverd.cxx (generate_mok): Removed comment about needing to
  require openssl.

10 years agodwflpp/prologue: fix DW_AT_producer parsing
Jonathan Lebon [Thu, 27 Feb 2014 19:43:11 +0000 (14:43 -0500)]
dwflpp/prologue: fix DW_AT_producer parsing

10 years agodwflpp/prologue: clean up and simplify logic
Jonathan Lebon [Thu, 27 Feb 2014 18:42:29 +0000 (13:42 -0500)]
dwflpp/prologue: clean up and simplify logic

Same logic, just broken up into easy to understand checks.

10 years agodwflpp/prologue: use function's decl_line for older GCCs
Jonathan Lebon [Wed, 26 Feb 2014 17:25:06 +0000 (12:25 -0500)]
dwflpp/prologue: use function's decl_line for older GCCs

This patch restores a heuristic we previously used, which worked well in
previous versions of GCC. In a nutshell, decl_line is now meaningless
for determining prologue ends, but for versions of GCC prior to 4.4.0,
it can be useful since it represents the lineno of '{', which should be
the same lineno as the entrypc, otherwise we consider it naked.

10 years agodwflpp/prologue: don't skip the first line record
Jonathan Lebon [Tue, 25 Feb 2014 19:50:04 +0000 (14:50 -0500)]
dwflpp/prologue: don't skip the first line record

Don't skip the first line record. It may correspond to a different file
than it->decl_file, in which case it's a naked prologue.

10 years agoPR16472: Add an indent_depth() tapset function
Josh Stone [Wed, 26 Feb 2014 22:55:40 +0000 (14:55 -0800)]
PR16472: Add an indent_depth() tapset function

- Add indent_depth() as a global analogue of thread_indent_depth()
- Reuse _generic_indent_depth() from _generic_indent() too.
- Expand buildok/indent.stp for all indentation functions.

10 years agoPR16472: Add a thread_indent_depth() tapset function
Fahad Arshad [Wed, 26 Feb 2014 14:41:05 +0000 (09:41 -0500)]
PR16472: Add a thread_indent_depth() tapset function

10 years agoNEWS: Mention guru_mode conditional
Frank Ch. Eigler [Wed, 26 Feb 2014 19:24:35 +0000 (14:24 -0500)]
NEWS: Mention guru_mode conditional

10 years agoAdd 'guru_mode' preprocessor conditional.
Peter Kjellström [Wed, 26 Feb 2014 17:35:48 +0000 (18:35 +0100)]
Add 'guru_mode' preprocessor conditional.

* parse.cxx (eval_pp_conditional): Added 'guru_mode' preprocessor conditional.
* man/stap.1: Added 'guru_mode' preprocessor conditional documentation.
* testsuite/parseok/fourteen.stp: Added 'guru_mode' preprocessor conditional
  test.
* testsuite/parseko/preprocess20.stp: New file.
* testsuite/parseko/preprocess21.stp: Ditto.
* testsuite/parseko/preprocess22.stp: Ditto.

10 years agostapdyn: Make sure mutatee::call_function is stopped first
Josh Stone [Wed, 26 Feb 2014 19:08:28 +0000 (11:08 -0800)]
stapdyn: Make sure mutatee::call_function is stopped first

10 years agoFix PR16636 by separating out preadv()/pwritev() testing.
David Smith [Wed, 26 Feb 2014 17:57:18 +0000 (11:57 -0600)]
Fix PR16636 by separating out preadv()/pwritev() testing.

* tapset/linux/syscalls2.stp (syscall.preadv): The 'fd' and 'count'
  variables are 32-bits on the user side. Truncate them.
  (syscall.pwritev): Ditto.
  (syscall.readv): Ditto.
  (syscall.writev): Ditto.
* testsuite/systemtap.syscall/readwrite.c: Move readv(), writev(),
  preadv(), pwritev() testing to their own files.
* testsuite/systemtap.syscall/preadv.c: New test.
* testsuite/systemtap.syscall/pwritev.c: Ditto.
* testsuite/systemtap.syscall/readv.c: Ditto.
* testsuite/systemtap.syscall/writev.c: Ditto.

10 years agoREADME: add a xref to HACKING
Frank Ch. Eigler [Wed, 26 Feb 2014 16:43:34 +0000 (11:43 -0500)]
README: add a xref to HACKING

10 years agoFix PR16616 by handling a NULL servername in sunrpc probes.
David Smith [Tue, 25 Feb 2014 19:24:11 +0000 (13:24 -0600)]
Fix PR16616 by handling a NULL servername in sunrpc probes.

* tapset/linux/rpc.stp (sunrpc.clnt.entry): Use __rpc_format_servername()
  to generate the 'servername' convenience variable.
  (__rpc_format_servername): New function.
* tapset/linux/conversions.stp (kernel_string): Fix odd formatting of NULL
  value in the error message.

10 years agoPR16632: Adapt to glibc deprecation of _BSD_SOURCE: add _DEFAULT_SOURCE
Frank Ch. Eigler [Tue, 25 Feb 2014 16:34:35 +0000 (11:34 -0500)]
PR16632: Adapt to glibc deprecation of _BSD_SOURCE: add _DEFAULT_SOURCE

10 years agoNEWS: brag about secureboot support
Frank Ch. Eigler [Mon, 24 Feb 2014 16:53:11 +0000 (11:53 -0500)]
NEWS: brag about secureboot support

10 years agofixed prologue comment re. -fomit-frame-pointer
Jonathan Lebon [Fri, 21 Feb 2014 21:11:13 +0000 (16:11 -0500)]
fixed prologue comment re. -fomit-frame-pointer

Although the base pointer register is not used when -fomit-frame-pointer
is used, looking at the assembly shows that the address at which we're
done pushing things on the stack does correspond to the line record
following the declaration's line record, so the heuristic indeed works
properly in that case as well. (I previously thought the right spot
should be the same as the entrypc, but hadn't looked closely enough at
the assembly).

10 years agocast-scope.exp: remove PR13420 kfail
Jonathan Lebon [Fri, 21 Feb 2014 17:13:51 +0000 (12:13 -0500)]
cast-scope.exp: remove PR13420 kfail

We now pass these tests.

10 years agodwflpp: improve prologue-end searching heuristics
Jonathan Lebon [Wed, 12 Feb 2014 17:23:57 +0000 (12:23 -0500)]
dwflpp: improve prologue-end searching heuristics

This patch adds support for the prologue_end marker, which is set by
compilers such as clang. Otherwise, we determine prologue endings by
looking for the same (or larger) line number (which allows for detecting
GCC's 0-line advances).

10 years agoAdd defines for .callee on older elfutils
Josh Stone [Thu, 20 Feb 2014 00:52:58 +0000 (16:52 -0800)]
Add defines for .callee on older elfutils

10 years agoLarge rewrite of schedtimes example
Josh Stone [Thu, 20 Feb 2014 00:51:11 +0000 (16:51 -0800)]
Large rewrite of schedtimes example

- Greatly simplified timestamp updates
- Use task->in_iowait directly on 2.6.32+
- Record new execnames after process exec
- Stop accumulating time after process exit

10 years agoAUTHORS bump
Josh Stone [Thu, 20 Feb 2014 00:45:57 +0000 (16:45 -0800)]
AUTHORS bump

10 years agoFix a typo in schedtimes.meta and regenerate indexes
Josh Stone [Thu, 20 Feb 2014 00:45:42 +0000 (16:45 -0800)]
Fix a typo in schedtimes.meta and regenerate indexes

10 years agoMake schedtimes follow the children of the traced process
David Juran [Fri, 31 Jan 2014 10:46:24 +0000 (11:46 +0100)]
Make schedtimes follow the children of the traced process

10 years agoman/stapprobes.3stap: fix typos
Jonathan Lebon [Wed, 19 Feb 2014 17:15:48 +0000 (12:15 -0500)]
man/stapprobes.3stap: fix typos

10 years agoregenerate examples index
Jonathan Lebon [Tue, 18 Feb 2014 23:14:59 +0000 (18:14 -0500)]
regenerate examples index

10 years agoEXAMPLES/process/procmod_watcher.stp: add meta file
Jonathan Lebon [Tue, 18 Feb 2014 23:09:22 +0000 (18:09 -0500)]
EXAMPLES/process/procmod_watcher.stp: add meta file

10 years agoMerge branch 'jlebon/callee' (PR1133)
Jonathan Lebon [Tue, 18 Feb 2014 22:52:25 +0000 (17:52 -0500)]
Merge branch 'jlebon/callee' (PR1133)

10 years agoMerge branch 'templates' into jlebon/callee
Jonathan Lebon [Tue, 18 Feb 2014 22:50:53 +0000 (17:50 -0500)]
Merge branch 'templates' into jlebon/callee

This branch converts all the iterate_over_* functions into templates,
which allow for typesafe callbacks. Casts should no longer be used in
callback functions.

10 years agotemplate-ify iterate_over_callees()
Jonathan Lebon [Tue, 18 Feb 2014 20:49:48 +0000 (15:49 -0500)]
template-ify iterate_over_callees()

10 years agotemplate-ify iterate_over_labels()
Jonathan Lebon [Tue, 18 Feb 2014 20:44:19 +0000 (15:44 -0500)]
template-ify iterate_over_labels()

10 years agotemplate-ify iterate_over_srcfile_lines()
Jonathan Lebon [Tue, 18 Feb 2014 20:36:14 +0000 (15:36 -0500)]
template-ify iterate_over_srcfile_lines()

10 years agotemplate-ify iterate_over_plt()
Jonathan Lebon [Tue, 18 Feb 2014 20:27:54 +0000 (15:27 -0500)]
template-ify iterate_over_plt()

10 years agotemplate-ify iterate_over_libraries()
Jonathan Lebon [Tue, 18 Feb 2014 20:22:29 +0000 (15:22 -0500)]
template-ify iterate_over_libraries()

10 years agotemplate-ify iterate_over_notes()
Jonathan Lebon [Tue, 18 Feb 2014 20:11:46 +0000 (15:11 -0500)]
template-ify iterate_over_notes()

10 years agoNEWS: add blurb about .callees probes
Jonathan Lebon [Tue, 18 Feb 2014 21:19:18 +0000 (16:19 -0500)]
NEWS: add blurb about .callees probes

10 years agotemplate-ify iterate_over_globals() and iterate_over_types()
Jonathan Lebon [Tue, 18 Feb 2014 19:57:52 +0000 (14:57 -0500)]
template-ify iterate_over_globals() and iterate_over_types()

10 years agocallee.exp: new testcase for callee probes
Jonathan Lebon [Fri, 7 Feb 2014 15:49:02 +0000 (10:49 -0500)]
callee.exp: new testcase for callee probes

This testcase tests all the aspects callee probes have to handle, such
as inlined functions, exported functions, nested [inlined] functions,
and relocation.

10 years agotemplate-ify iterate_over_functions() and iterate_single_function()
Jonathan Lebon [Tue, 18 Feb 2014 19:31:20 +0000 (14:31 -0500)]
template-ify iterate_over_functions() and iterate_single_function()

10 years agocolor_parsing.exp: adjust installtest check
Jonathan Lebon [Fri, 7 Feb 2014 15:46:59 +0000 (10:46 -0500)]
color_parsing.exp: adjust installtest check

10 years agotemplate-ify iterate_over_inline_instances()
Jonathan Lebon [Tue, 18 Feb 2014 19:12:51 +0000 (14:12 -0500)]
template-ify iterate_over_inline_instances()

10 years agoman/stapprobes.3stap: re-structure and add .callee[s]
Jonathan Lebon [Wed, 5 Feb 2014 19:54:40 +0000 (14:54 -0500)]
man/stapprobes.3stap: re-structure and add .callee[s]

Information about .callee[s] probes was added.

The paragraph containing variants and modifiers was getting heavy, so it
was made into a list instead.

10 years agotemplate-ify iterate_over_cus()
Jonathan Lebon [Tue, 18 Feb 2014 17:26:37 +0000 (12:26 -0500)]
template-ify iterate_over_cus()

10 years agomake .callee[s] probes only trigger when called from target callers
Jonathan Lebon [Tue, 18 Feb 2014 22:13:52 +0000 (17:13 -0500)]
make .callee[s] probes only trigger when called from target callers

Here, we prefix a block to the callee's probe handler to only pass
through if all the callers up the chain match with the current stack.
For .callee("func") probes, we simply add a check for [u]stack(1) ==
"func". For .callees(N) probes, we add a check that the N callers up the
callstack match those iterate_over_callees() found during static
analysis.

These checks are done at runtime by the caller_match() tapset function,
which calls _stp_[uk]module_relocate() to get the relocated address of
the expected caller and _stp_stack_[user|kernel]_get() to get the
unwinding address in the wanted stack frame.

10 years agotemplate-ify iterate_over_modules()
Jonathan Lebon [Fri, 14 Feb 2014 20:24:00 +0000 (15:24 -0500)]
template-ify iterate_over_modules()

10 years agoimplement iterate_over_callees()
Jonathan Lebon [Tue, 28 Jan 2014 19:51:07 +0000 (14:51 -0500)]
implement iterate_over_callees()

In this patch, we actually implement iterate_over_callees(). This
function looks for inlined subroutines or GNU_call_sites and calls the
callback for each found. The query_callee() callback for now simply does
a query_statement on the callee found. Logic is added in the next patch
to limit probing to calls from caller only.

10 years agoregister .callee[s[(N)]] variants
Jonathan Lebon [Tue, 28 Jan 2014 19:43:42 +0000 (14:43 -0500)]
register .callee[s[(N)]] variants

Here, we register three variants:

- function.callee(STR)
- function.callees
- function.callees(NUM), where NUM >= 1

10 years agoallow arbitrary callback arg for iterate_over_functions()
Jonathan Lebon [Tue, 28 Jan 2014 19:41:40 +0000 (14:41 -0500)]
allow arbitrary callback arg for iterate_over_functions()

This type-unsafe transformation will be corrected (along with all others
of this kind) in an upcoming patch.

10 years agonfsd-recent.stp: New sample script
Frank Ch. Eigler [Wed, 19 Feb 2014 15:22:41 +0000 (10:22 -0500)]
nfsd-recent.stp: New sample script

10 years agoAdd a rpm require on 'mokutil' when needed.
David Smith [Tue, 18 Feb 2014 21:19:13 +0000 (15:19 -0600)]
Add a rpm require on 'mokutil' when needed.

* systemtap.spec: Make the client subpackage require 'mokutil' when
  needed.
* session.cxx (get_mok_info): Remove 'FIXME' comment about needing to
  require 'mokutil'.

10 years agoPR16603: correct time drift on fluctuating-cpufreq unsync-tsc boxes
Frank Ch. Eigler [Tue, 18 Feb 2014 20:03:21 +0000 (15:03 -0500)]
PR16603: correct time drift on fluctuating-cpufreq unsync-tsc boxes

* runtime/time.c: Restructure the per-cpu base_ns/base_cycles logic so
  a common function is used during initialization, the regular timer
  callback, and the irregular cpufreq callback (via an IPI there).

10 years agoBetter fix for improved key security while generating new MOKs.
David Smith [Mon, 17 Feb 2014 16:47:02 +0000 (10:47 -0600)]
Better fix for improved key security while generating new MOKs.

* stap-serverd.cxx (generate_mok): Instead of manually changing
  permissions on the newly generated private key, just set the umask.

10 years agoMerge branch 'dsmith/secure-boot' into master.
David Smith [Mon, 17 Feb 2014 16:32:36 +0000 (10:32 -0600)]
Merge branch 'dsmith/secure-boot' into master.

Add the capability of module signing for secure boot purposes into the
stap compile server.

10 years agostapdyn: Print dynprobe flags as hex in debug messages
Josh Stone [Sat, 15 Feb 2014 01:25:55 +0000 (17:25 -0800)]
stapdyn: Print dynprobe flags as hex in debug messages

10 years agostapdyn: Reorganize utrace probing, and get end-by-exec working
Josh Stone [Sat, 15 Feb 2014 01:25:12 +0000 (17:25 -0800)]
stapdyn: Reorganize utrace probing, and get end-by-exec working

* mutatee.cxx (mutatee::exec_reset_instrumentation): Save process.end
  probes into exec_proc_end_probes, and clear the rest of attached_probes.
  (mutatee::call_utrace_dynprobes): Take a whole vector of probes, and do
  the lookup for utrace_enter_function here.
  (mutatee::find_attached_probes): Return the vector directly.
  (mutatee::thread_callback): Use find_attached_probes, and pass that to
  call_utrace_dynprobes as is.
  (mutatee::begin_callback): Ditto.
  (mutatee::exit_callback): Ditto, except treat exec specially.
  (mutatee::instrument_dynprobes): Don't try to deal with exec here,
  because the stap module probably isn't ready yet.
* mutator.cxx (mutator::exec_callback): Call mutatee::exit_callback.
  (mutator::exit_callback): Align the fake-local probe hits to work more
  similarly to mutatee::exit_callback.

10 years agostapdyn: Enable following exec with Dyninst 8.2
Josh Stone [Fri, 14 Feb 2014 22:52:48 +0000 (14:52 -0800)]
stapdyn: Enable following exec with Dyninst 8.2

10 years agostapdyn: Report PIDs in mutatee debug messages
Josh Stone [Fri, 14 Feb 2014 22:46:45 +0000 (14:46 -0800)]
stapdyn: Report PIDs in mutatee debug messages

10 years agopstree: Apply DOT escapes to all strings
Josh Stone [Fri, 14 Feb 2014 18:28:53 +0000 (10:28 -0800)]
pstree: Apply DOT escapes to all strings

10 years agoImprove key security while generating new MOKs.
David Smith [Fri, 14 Feb 2014 16:23:45 +0000 (10:23 -0600)]
Improve key security while generating new MOKs.

* stap-serverd.cxx (generate_mok): Manage temporary directory permissions
  so that no one can read the private key until we fix its permissions.

10 years agoAdd an additional PR16570 fix for ia64.
David Smith [Fri, 14 Feb 2014 14:57:12 +0000 (08:57 -0600)]
Add an additional PR16570 fix for ia64.

* testsuite/systemtap.syscall/nd_syscall.exp (test_procedure): Kfail the
  module compliation on ia64 since ia64 doesn't have kprobe.function
  support.

10 years agoRegenerate examples index
Josh Stone [Thu, 13 Feb 2014 20:16:41 +0000 (12:16 -0800)]
Regenerate examples index

10 years agoAdd process/pstree.stp example
Josh Stone [Thu, 13 Feb 2014 20:14:44 +0000 (12:14 -0800)]
Add process/pstree.stp example

This generates a process diagram in DOT form.  For instance, it may be
useful on a 'make' command to see all the processes that are started.

10 years agoFix PR16580 by decoding the 'protocol' argument of 'syscall.socket{pair}'.
David Smith [Thu, 13 Feb 2014 19:54:35 +0000 (13:54 -0600)]
Fix PR16580 by decoding the 'protocol' argument of 'syscall.socket{pair}'.

* tapset/linux/aux_syscalls.stp (_sock_protocol_str): New function.
* tapset/linux/syscalls2.stp: Decode the 'protocol' argument in
  syscall.socket and syscall.socketpair with _sock_protocol_str().
* tapset/linux/nd_syscalls2.stp: Ditto.
* testsuite/systemtap.syscall/socket.c: New test.
* testsuite/systemtap.syscall/socketpair.c: Updated test to expect decoded
  'protocol' arguments.
* testsuite/systemtap.syscall/net1.c: Ditto.

10 years agoCheck directories exist before sym linking runtime-java helpers
Lukas Berk [Thu, 13 Feb 2014 16:18:18 +0000 (11:18 -0500)]
Check directories exist before sym linking runtime-java helpers

* systemtap.spec - When we're linking libHelperSDT_*.so and
    HelperSDT.jar we need to make sure that the openjdk
 dirs we're linking to actually exist if yum/openjdk
 failed to remove the base dir on an openjdk upgrade.

10 years agoman error::reporting: highlight stap-report
Frank Ch. Eigler [Thu, 13 Feb 2014 15:13:18 +0000 (10:13 -0500)]
man error::reporting: highlight stap-report

10 years agoman error::buildid: expand blurbage
Frank Ch. Eigler [Thu, 13 Feb 2014 15:09:35 +0000 (10:09 -0500)]
man error::buildid: expand blurbage

10 years agofind_and_build: set from_glob for globby functors
Jonathan Lebon [Wed, 12 Feb 2014 21:43:47 +0000 (16:43 -0500)]
find_and_build: set from_glob for globby functors

We don't want to create suggestions for probe points created from globby
functors (e.g. syscall.*). Otherwise, we'll be creating a lot of
overhead calculating levenshtein distances for no reason.

10 years agoRHBZ 847285: Don't allow 'systemctl reload'.
Dave Brolley [Wed, 12 Feb 2014 21:03:51 +0000 (16:03 -0500)]
RHBZ 847285: Don't allow 'systemctl reload'.

'reload' is not supported by the stap-server script. The
ExecReload line in stap-server.service was calling
'stap-server restart' which stops the server and starts a
new one. This behavior is not expected or tolerated by systemd
which promptly sends SIGKILL to the new server.

We cannot supported 'reload' in systemctl. Note that 'restart'
is supported and works properly.

10 years agoAdded rename()/renameat() testcase and prevent more syscall nesting.
David Smith [Wed, 12 Feb 2014 20:53:21 +0000 (14:53 -0600)]
Added rename()/renameat() testcase and prevent more syscall nesting.

* testsuite/systemtap.syscall/rename.c: New testcase for rename() and
  renameat().
* tapset/linux/syscalls2.stp: Prevent syscall nesting in syscall.open,
  and syscall.renameat.
* tapset/linux/nd_syscalls2.stp: Ditto.
* tapset/linux/syscalls.stp: Prevent syscall nesting in syscall.mkdirat.
* tapset/linux/nd_syscalls.stp: Ditto.
* runtime/linux/compat_unistd.h: Add __NR_compat defines.

10 years agoFix PR16570 by speeding up the syscall.exp/nd_syscall.exp testcases.
David Smith [Wed, 12 Feb 2014 18:58:41 +0000 (12:58 -0600)]
Fix PR16570 by speeding up the syscall.exp/nd_syscall.exp testcases.

* testsuite/systemtap.syscall/syscall.exp: Compile the module once.
* testsuite/systemtap.syscall/nd_syscall.exp: Ditto.
* testsuite/systemtap.syscall/test.tcl (run_one_test): Use staprun to load
  the previously compiled module.

10 years agoloc2c.c (translate): Add unhandled error case for DW_OP_GNU_entry_value.
Mark Wielaard [Wed, 12 Feb 2014 16:59:15 +0000 (17:59 +0100)]
loc2c.c (translate): Add unhandled error case for DW_OP_GNU_entry_value.

We don't handle DW_OP_GNU_entry_value in location expressions. This gives
a nicer error message when we encounter it in an expression.

10 years agoFix syscall.rt_sigreturn{.return} for ia64.
David Smith [Tue, 11 Feb 2014 20:59:30 +0000 (14:59 -0600)]
Fix syscall.rt_sigreturn{.return} for ia64.

10 years agoFix permissions on testsuite/buildok/scheduler-cpu_on.stp.
David Smith [Tue, 11 Feb 2014 18:59:13 +0000 (12:59 -0600)]
Fix permissions on testsuite/buildok/scheduler-cpu_on.stp.

10 years agoUpdate the list of kfailed tests in buildok.exp.
David Smith [Tue, 11 Feb 2014 18:12:06 +0000 (12:12 -0600)]
Update the list of kfailed tests in buildok.exp.

10 years agoSmall scheduler tapset testsuite fixes.
David Smith [Tue, 11 Feb 2014 18:07:57 +0000 (12:07 -0600)]
Small scheduler tapset testsuite fixes.

* testsuite/buildok/scheduler-cpu_on.stp: New file.
* testsuite/buildok/scheduler-detailed.stp: Moved 'scheduler.cpu_on' test
  to scheduler-cpu_on.stp.
* testsuite/buildok/scheduler-migrate.stp: Removed unneeded
  '__scheduler.migrate.kp' test.

10 years agoMake 'signal.checkperm.return' optional, since it can be inlined.
David Smith [Tue, 11 Feb 2014 18:03:58 +0000 (12:03 -0600)]
Make 'signal.checkperm.return' optional, since it can be inlined.

* tapset/linux/signal.stp: On some kernels, check_kill_permission() can be
  only inlined, so make 'signal.checkperm.return' optional.
* testsuite/buildok/signal-detailed.stp: Make the
  'signal.checkperm.return' test optional

10 years agoFix PR16557 by improving the vm.mmap probe alias.
David Smith [Tue, 11 Feb 2014 17:38:03 +0000 (11:38 -0600)]
Fix PR16557 by improving the vm.mmap probe alias.

* tapset/linux/memory.stp (vm.mmap): Improve probe alias by probing
  do_mmap_pgoff() (when available) instead of do_mmap(), which can be
  always inlined.

10 years agoFix PR16555 by fixing task.stp on rawhide.
David Smith [Tue, 11 Feb 2014 15:13:37 +0000 (09:13 -0600)]
Fix PR16555 by fixing task.stp on rawhide.

* tapset/linux/task.stp: Add CONFIG_USER_NS support to task_gid(),
  task_egid(), task_uid(), task_euid().

10 years agoAdditional PR16540 fix. Fix using @cast when scsi support is in a module.
David Smith [Mon, 10 Feb 2014 23:11:31 +0000 (17:11 -0600)]
Additional PR16540 fix. Fix using @cast when scsi support is in a module.

* tapset/linux/scsi.stp: For kernels where scsi support is in a module,
  like on RHEL5, fix @cast() in the 'scsi.iodone' probe alias.

10 years agoFix kernels that have CONFIG_USER_NS, but uid/gids are still simple values.
David Smith [Mon, 10 Feb 2014 23:08:13 +0000 (17:08 -0600)]
Fix kernels that have CONFIG_USER_NS, but uid/gids are still simple values.

* buildrun.cxx (compile_pass): Add an export test for "from_kuid_munged".
* runtime/linux/runtime.h: If we don't have "from_kuid_munged", define our
  own from_kgid_munged()/from_kgid_munged() that do nothing.

10 years agoAdditional PR16541 fix. Fix using @cast when nfsd is in a module.
David Smith [Mon, 10 Feb 2014 21:20:58 +0000 (15:20 -0600)]
Additional PR16541 fix. Fix using @cast when nfsd is in a module.

* tapset/linux/nfsd.stp: For kernels where nfsd is in a module (like on
  RHEL5), fix @cast() in new __rqstp_uid() and __rqstp_gid() functions.

10 years agodelete initscript/README.stap-server
Jonathan Lebon [Mon, 10 Feb 2014 20:47:25 +0000 (15:47 -0500)]
delete initscript/README.stap-server

The large majority of information in README.stap-server was already part
of the stap-server(8) man page. A few examples and clarifications were
transferred over.

- initscript/README.stap-server: delete it
- man/stap-server.8: incorporate some of the examples from the README
  and some clarifications
- systemtap.spec: remove README.stap-server from $files list
- NEWS: add blurb about removal

10 years agoFix PR16541 by updating the nfsd.stp tapset.
David Smith [Mon, 10 Feb 2014 19:07:09 +0000 (13:07 -0600)]
Fix PR16541 by updating the nfsd.stp tapset.

* tapset/linux/nfsd.stp: Two fixes. Handle kernels with CONFIG_USER_NS,
  whose uids/gids aren't simple types. In nfsd.close, handle the inlined
  case were we can't find the argument.

10 years agodoc/langref.tex: drop some 'experimental' qualifiers
Frank Ch. Eigler [Mon, 10 Feb 2014 17:54:42 +0000 (12:54 -0500)]
doc/langref.tex: drop some 'experimental' qualifiers

Regex-matching and macros are not experimental any more.

10 years agoFix PR16542 by updating the rpc tapset.
David Smith [Mon, 10 Feb 2014 16:18:34 +0000 (10:18 -0600)]
Fix PR16542 by updating the rpc tapset.

* tapset/linux/rpc.stp: Handle the removal of the rpc_clnt 'cl_protname' field.

10 years agoFix PR16540 by adding scsi tracepoint support to the scsi.iodone probe alias.
David Smith [Mon, 10 Feb 2014 15:59:21 +0000 (09:59 -0600)]
Fix PR16540 by adding scsi tracepoint support to the scsi.iodone probe alias.

* tapset/linux/scsi.stp (scsi.iodone): Use the "scsi_dispatch_cmd_done"
  tracepoint when available.

10 years agoNEWS: blurb about README change
Jonathan Lebon [Mon, 10 Feb 2014 15:21:19 +0000 (10:21 -0500)]
NEWS: blurb about README change

10 years agoautoreconf
Jonathan Lebon [Mon, 10 Feb 2014 15:21:26 +0000 (10:21 -0500)]
autoreconf

10 years agoman/systemtap.8.in: new man page to replace README
Jonathan Lebon [Mon, 10 Feb 2014 15:20:56 +0000 (10:20 -0500)]
man/systemtap.8.in: new man page to replace README

This man page replaces the README.systemtap text file. The content is
almost the same. A lot of rephrasing, some restructuring, and some
clarifications that weren't present in the original document.

- man/systemtap.8.in: new man page
- initscript/README.systemtap: remove it
- initscript/systemtap.in: add hint to man page

- configure.ac: add man/systemtap.8.in in AC_CONFIG_FILES macro
- man/Makefile.am: add systemtap.8 to man_MANS
- systemtap.spec: replace README by man page in systemtap-initscript pkg
  $files list

10 years agoruntime: linux 3.14 porting: preempt_enable_no_resched
Frank Ch. Eigler [Sat, 8 Feb 2014 03:07:46 +0000 (22:07 -0500)]
runtime: linux 3.14 porting: preempt_enable_no_resched

Kludge for linux commit 62b94a08da1bae9d187d49dfcd6665af393750f8:
sched/preempt: Take away preempt_enable_no_resched() from modules

We may well not need to use the _no_resched variant in modern kernels,
and reasons for using it at all are not well documented.  TODO rethink.

10 years agoruntime: linux 3.14 porting: userns: Remove UIDGID_STRICT_TYPE_CHECKS
Frank Ch. Eigler [Sat, 8 Feb 2014 02:50:59 +0000 (21:50 -0500)]
runtime: linux 3.14 porting: userns: Remove UIDGID_STRICT_TYPE_CHECKS

Adapt to linux commit 261000a56b6382f597bcb12000f55c9ff26a1efb
by using CONFIG_USER_NS as trigger for our *id*munged treatment
instead of CONFIG_UIDGID_STRICT_TYPE_CHECKS.

10 years agoRemove the transport's unused "dropped" file.
David Smith [Fri, 7 Feb 2014 16:27:14 +0000 (10:27 -0600)]
Remove the transport's unused "dropped" file.

* runtime/transport/relay_v2.c: Unless _STP_USE_DROPPED_FILE is defined,
  don't bother creating the unused "dropped" file.

10 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
David Smith [Mon, 3 Feb 2014 19:11:13 +0000 (13:11 -0600)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

10 years agoCompile fix for runtime/vma.c.
David Smith [Mon, 3 Feb 2014 19:09:38 +0000 (13:09 -0600)]
Compile fix for runtime/vma.c.

* runtime/vma.c (_stp_vma_exec_cb): Add cast to avoid compiler error.

10 years agoNEWS: clarify kprocess.exec change
Jonathan Lebon [Fri, 31 Jan 2014 16:06:40 +0000 (11:06 -0500)]
NEWS: clarify kprocess.exec change

10 years agoAdd the ability for the server to generate MOKs.
David Smith [Thu, 30 Jan 2014 22:35:49 +0000 (16:35 -0600)]
Add the ability for the server to generate MOKs.

* stap-serverd.cxx (generate_mok): New function.
  (handleRequest): Call generate_mok() when needed.

10 years agoVarious server cleanups related to MOK handling.
David Smith [Wed, 29 Jan 2014 19:27:40 +0000 (13:27 -0600)]
Various server cleanups related to MOK handling.

* stap-serverd.cxx (inotify_callback): Simplified.
  (avahi_publish_service): Open the inotify file in non-blocking
  mode. Create the server mok directory if needed.
  (mok_sign_file): Return a bool to let callers know if it worked.
  (handleRequest): If MOK signing failed, tell the client to not load the
  resulting module.

This page took 0.059067 seconds and 5 git commands to generate.