fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
khaled has quit [Quit: Konversation terminated!]
modem has quit [Ping timeout: 252 seconds]
modem has joined #systemtap
hpt has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
khaled has joined #systemtap
fdalleau_away is now known as fdalleau
khaled has quit [Quit: Konversation terminated!]
khaled has joined #systemtap
hpt has quit [Ping timeout: 240 seconds]
LW has quit [Quit: Leaving]
orivej has joined #systemtap
khaled_ has joined #systemtap
khaled has quit [Remote host closed the connection]
tromey has joined #systemtap
<modem> mmm
<modem> I have a probe that does a down_write(mm->mmap_sem)
<modem> it's creating a recursive deadlock issue
<modem> despite the lock is not held when the probe is hit
<modem> [ 32.056655] CPU0 CPU1
<modem> [ 32.057022] ---- ----
<modem> [ 32.057379] lock(&(kretprobe_table_locks[i].lock));
<modem> [ 32.057767] lock(&mm->mmap_sem);
<modem> [ 32.058216] lock(&(kretprobe_table_locks[i].lock));
<modem> [ 32.058785] lock(&mm->mmap_sem);
<modem> Can someone confirm me that recursive probe trigger deadlock ?
<fche> that's a lockdep warning about a lock-ordering problem
<fche> you have a -probe- that does a down_write() in the probe handler via embedded-C?
<fche> yeah don't do that
orivej has quit [Ping timeout: 252 seconds]
<modem> fche: yes I have a probe that does down_write() via embedded-C and it also call the function that is probed
<modem> it seems I have a deadlock problem because my probe does hit itself
<modem> (it's not from the down_write)
<fche> that's not a recursion warning, but a lock ordering one
<fche> lockdep is telling you that with the way your code is run (CPU0), another piece of code run on another CPU could trigger a deadlock
<fche> and anyway, yeah, you really shouldn't do down_write etc. in embedded C unless you know Very well what context you do it in, ensure the locking context is Just Right etc.
<modem> I understand
<modem> what is this kretprobe_table_locks things
<modem> you cannot run the same probe handler concurrently ?
<fche> some internal kernel part
<fche> we run concurrently all the time
<fche> but WHAT we run is the issue. Yours introducing locking that's inconsistent with the way the rest of the kernel is doing it
<modem> I can not acquire exclusive lock from an embedded-c probe ? correct me
<irker075> systemtap: fche systemtap.git:master * release-4.4-152-g15e40b631 / testsuite/systemtap.base/sdt_buildid.exp util.cxx: use long-lived debuginfod_client handle for buildid based probes
<fche> modem, correct, you generally cannot just take locks you might want to
<fche> stap probes do not run in 'process context' or something like that, where blocking etc. are okay
<modem> yes
<modem> gotcha
<modem> first time I am stuck from doing something from systemtap
<irker075> systemtap: me systemtap.git:master * release-4.4-153-g1366608b4 / AUTHORS: pre-release-4.5: update AUTHORS
<irker075> systemtap: me systemtap.git:master * release-4.4-154-g879f42d2b / session.cxx stapbpf/stapbpf.cxx stapdyn/stapdyn.cxx staprun/common.c: pre-release-4.5: update PRERELEASE except systemtap.spec
<irker075> systemtap: me systemtap.git:master * release-4.4-155-g405c5fe5f / po/POTFILES.in po/cs.gmo po/cs.po po/en.po po/fr.po po/pl.po po/systemtap.pot: pre-release-4.5: make update-po
mjw has joined #systemtap
<irker075> systemtap: me systemtap.git:master * release-4.4-156-g5b0b6e729 / testsuite/systemtap.examples/metadatabase.db: pre-release-4.5: regen examples index
<irker075> systemtap: fche systemtap.git:master * release-4.4-157-g20bee3aec / NEWS: NEWS: add a few more runtime related entries
orivej has joined #systemtap
<irker075> systemtap: me systemtap.git:master * release-4.4-158-g2fd68b222 / : pre-release-4.5: regen docs, FIX scripts/update-syscall-docs FOR py3
<irker075> systemtap: me systemtap.git:master * release-4.4-159-gb0a1afdb4 / systemtap.spec: systemtap.spec: release-4.5
orivej has quit [Ping timeout: 240 seconds]
fdalleau is now known as fdalleau_away
amerey_ has quit [Quit: Leaving]
tromey has quit [Quit: ERC (IRC client for Emacs 27.1)]
<irker075> systemtap: me systemtap.git:release-4.5 * release-4.5 / systemtap.spec: systemtap.spec: release-4.5
<irker075> systemtap: smakarov systemtap.git:master * release-4.4-160-g0eba8a46b / NEWS: NEWS: release-4.5
<irker075> systemtap: smakarov systemtap.git:release-4.5 * release-4.5 / NEWS: NEWS: release-4.5
<fche> noice
<kerneltoast> 'ery noice
<serhei> ah, the woops with the release tag is noticeable via the irc bot
mjw has quit [Quit: Leaving]
orivej has joined #systemtap