public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug testsuite/16493] New: Improve bkl.stp to add backtrace and timeout
@ 2014-01-22 10:46 jcastillo at redhat dot com
  2014-01-24  8:58 ` [Bug testsuite/16493] Improve bkl.stp to add backtrace jcastillo at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jcastillo at redhat dot com @ 2014-01-22 10:46 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=16493

            Bug ID: 16493
           Summary: Improve bkl.stp to add backtrace and timeout
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: systemtap at sourceware dot org
          Reporter: jcastillo at redhat dot com

Created attachment 7366
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7366&action=edit
Proposed patch

Hello, 

Most of the times, when we use bkl.stp to investigate BKL issues, we've found
useful to have the backtrace of the function that holds the BKL.
The patch attached adds a new command line option, "backtrace=N", that when
used enables the use of print_backtrace(). The value of <N>, if present, is
taken as useconds, and it is the limit of time the task or tasks have been
waiting to acquire the lock i.e.:

  # stap blk.stp backtrace=100

That would enable printing of backtrace on all tasks holding the kernel
big lock for more than 100us.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug testsuite/16493] Improve bkl.stp to add backtrace
  2014-01-22 10:46 [Bug testsuite/16493] New: Improve bkl.stp to add backtrace and timeout jcastillo at redhat dot com
@ 2014-01-24  8:58 ` jcastillo at redhat dot com
  2014-03-05 22:05 ` dsmith at redhat dot com
  2015-08-24 19:49 ` flu at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jcastillo at redhat dot com @ 2014-01-24  8:58 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=16493

Jose Castillo <jcastillo at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Improve bkl.stp to add      |Improve bkl.stp to add
                   |backtrace and timeout       |backtrace

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug testsuite/16493] Improve bkl.stp to add backtrace
  2014-01-22 10:46 [Bug testsuite/16493] New: Improve bkl.stp to add backtrace and timeout jcastillo at redhat dot com
  2014-01-24  8:58 ` [Bug testsuite/16493] Improve bkl.stp to add backtrace jcastillo at redhat dot com
@ 2014-03-05 22:05 ` dsmith at redhat dot com
  2015-08-24 19:49 ` flu at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: dsmith at redhat dot com @ 2014-03-05 22:05 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=16493

David Smith <dsmith at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dsmith at redhat dot com

--- Comment #1 from David Smith <dsmith at redhat dot com> ---
Sorry for taking so long to look at this. I like the idea of your patch, but we
can simplify it a bit.

We can remove all the command line processing, and just use stap command line
processing with the ability to set global variables from the command line using
'-G'. Here's an example of how it works:

====
# stap -e 'global backtrace=-1; probe begin { printf("%d\n", backtrace); exit()
}' -G backtrace=100
100
====

Thanks again for the patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug testsuite/16493] Improve bkl.stp to add backtrace
  2014-01-22 10:46 [Bug testsuite/16493] New: Improve bkl.stp to add backtrace and timeout jcastillo at redhat dot com
  2014-01-24  8:58 ` [Bug testsuite/16493] Improve bkl.stp to add backtrace jcastillo at redhat dot com
  2014-03-05 22:05 ` dsmith at redhat dot com
@ 2015-08-24 19:49 ` flu at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: flu at redhat dot com @ 2015-08-24 19:49 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=16493

Felix Lu <flu at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |flu at redhat dot com
         Resolution|---                         |FIXED

--- Comment #2 from Felix Lu <flu at redhat dot com> ---
Merged and removed command line processing in favour for -G

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-24 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-22 10:46 [Bug testsuite/16493] New: Improve bkl.stp to add backtrace and timeout jcastillo at redhat dot com
2014-01-24  8:58 ` [Bug testsuite/16493] Improve bkl.stp to add backtrace jcastillo at redhat dot com
2014-03-05 22:05 ` dsmith at redhat dot com
2015-08-24 19:49 ` flu at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).