sb0 changed the topic of #m-labs to: ARTIQ, Migen, MiSoC, Mixxeo & other M-Labs projects :: fka #milkymist :: Logs http://irclog.whitequark.org/m-labs
stekern has quit [Ping timeout: 256 seconds]
hedgeberg|away is now known as hedgeberg
Gurty has quit [Read error: Connection reset by peer]
<sb0> http://fitzgeraldnick.com/2017/02/22/cpp-demangle.html "the canonical C++ demangler in libiberty (used by c++filt and gdb) has had tons of classic C bugs [...] there were so many of these issues that gdb went so far as to install a signal handler to catch SIGSEGVs during demangling. It “recovered” from the segfaults by longjmping out of the signal handler and printing a warning message before moving along and pretending that nothing happened"
<whitequark> typical GNU code
<whitequark> GDB does the same with its unwinder
<ohsix> typical? huhu
<ohsix> the binutils & gdb stuff is in one tree now
<ohsix> and nerd points, not actually gnu code https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=libiberty/cp-demangle.c;h=15ef3b48785f0ef49408cabbacb1f1352fbaef9e;hb=HEAD
<ohsix> looks uniquely gross though
<ohsix> something that should probably be formalized and generated from rule files
<ohsix> woooooow it is really bad
<GitHub> [artiq] sbourdeauducq commented on issue #407: @r-srinivas ping https://github.com/m-labs/artiq/issues/407#issuecomment-281927667
<sb0> whitequark, if you want to change the analyzer to include DMA, you should simply edit MessageEncoder to take the CRI signals (after the arbiter) instead of the CSRs
<sb0> it should be a rather simple change
<sb0> we may actually want to do that, since 1) we have quite a bit of memory bandwidth and 2) the DMA buffers may change so tracing them is tricky
<sb0> this doesn't play well with the "distributed DMA" plan though (but this is a very long-term feature, if it lands at all)
<whitequark> sb0: can you just make that change? sounds like you already have all the context for it
<GitHub> [artiq] sbourdeauducq pushed 2 new commits to master: https://github.com/m-labs/artiq/compare/016743f079e5...b34c6ba6b946
<GitHub> artiq/master b34c6ba Sebastien Bourdeauducq: satman: process moninj packets
<GitHub> artiq/master 45ac0dc Sebastien Bourdeauducq: drtioaux: add moninj packets
<whitequark> sb0: the "better way to write that" is `as u8`
<whitequark> (or nothing)
<whitequark> mostly because as you write it, it's impossible to see looking at the code where the high byte gets cut off and where it isn't
<sb0> yes, that's the intended result
<sb0> what is going on is sometimes there are more than 256 rtio channels, in which case the function takes u16
<sb0> otherwise it takes u8
<whitequark> oh, I see
<whitequark> then just `as _`.
<GitHub> [artiq] whitequark pushed 1 new commit to master: https://github.com/m-labs/artiq/commit/623a605d3b9c6b5de9f653e8ab8abce2a8bad5de
<GitHub> artiq/master 623a605 whitequark: satman: refactor type conversions.
<sb0> thanks
<bb-m-labs> build #419 of artiq-board is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/419
<bb-m-labs> build #426 of artiq-win64-test is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-win64-test/builds/426
<bb-m-labs> build #1336 of artiq is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1336
<bb-m-labs> build #420 of artiq-board is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-board/builds/420
<bb-m-labs> build #427 of artiq-win64-test is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq-win64-test/builds/427
<bb-m-labs> build #1337 of artiq is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1337
hedgeberg is now known as hedgeberg|awy
hedgeberg|awy is now known as hedgeberg|away
kuldeep has joined #m-labs
kuldeep has quit [Read error: Connection reset by peer]
Gurty has joined #m-labs
Gurty has joined #m-labs
Gurty has quit [Changing host]
kuldeep has joined #m-labs
kuldeep has quit [Read error: Connection reset by peer]
kuldeep has joined #m-labs
kuldeep has quit [Read error: Connection reset by peer]
kuldeep has joined #m-labs
kuldeep has quit [Ping timeout: 240 seconds]
kuldeep has joined #m-labs
rohitksingh has joined #m-labs
<sb0> whitequark, I don't really understand the thread code in session.rs. is there at most one thread that runs check_magic at any given time?
<sb0> if the magic isn't sent, doesn't this block new connections?
<whitequark> I believe it does
<whitequark> I haven't really considered that case
<whitequark> that could be fixed by pulling the body of if can_accept() into its own thread, I guess
<sb0> yes
kuldeep has quit [Ping timeout: 255 seconds]
<sb0> what is respawn doing exactly?
<whitequark> killing the old thread
<sb0> joins any previous thread
<whitequark> then joins
<whitequark> interrupts it first
<sb0> ah, terminates it too, yes
hypermodern_ has joined #m-labs
early has quit [Quit: Leaving]
early has joined #m-labs
kilae has joined #m-labs
hypermodern_ has quit [Quit: hypermodern_]
rohitksingh has quit [Quit: Leaving.]
ohama has quit [Remote host closed the connection]
ohama has joined #m-labs
kilae has quit [Quit: ChatZilla 0.9.93 [Firefox 51.0.1/20170125094131]]
_whitelogger_ has joined #m-labs
_whitelogger has quit [Remote host closed the connection]
Gurty has quit [Read error: Connection reset by peer]
Gurty has joined #m-labs
kuldeep has joined #m-labs