On Fri, Aug 7, 2015 at 9:51 AM, bob wole <[email protected]> wrote:

>
>
> On Thu, Aug 6, 2015 at 6:36 PM, Tom Rondeau <[email protected]> wrote:
>
>> On Thu, Aug 6, 2015 at 1:24 AM, bob wole <[email protected]> wrote:
>>
>>>
>>>
>>> On Wed, Aug 5, 2015 at 6:46 PM, Tom Rondeau <[email protected]> wrote:
>>>
>>>> On Wed, Aug 5, 2015 at 1:21 AM, bob wole <[email protected]> wrote:
>>>>
>>>>>
>>>>> > There is a directory
>>>>>> > gnuradio-runtime/python/gnuradio/ctrlport
>>>>>> >
>>>>>> >
>>>>>> > where you in controlport related stuff.
>>>>>> >
>>>>>> > - - Volker
>>>>>> >
>>>>>> >
>>>>>> > Am 04.08.2015 um 10:09 schrieb Jeon:
>>>>>> >
>>>>>> > Dear Bob,
>>>>>> >
>>>>>> > A few months ago, I've asked a similar question (
>>>>>> > <
>>>>>> http://lists.gnu.org/archive/html/discuss-gnuradio/2015-06/msg00197.html
>>>>>> >
>>>>>> >
>>>>>> http://lists.gnu.org/archive/html/discuss-gnuradio/2015-06/msg00197.html
>>>>>> )
>>>>>> >
>>>>>> > and Tom gave me his paper in SIGCOMM.
>>>>>> >
>>>>>> > Inspecting GNU Radio Applications with ControlPort and Performance
>>>>>> Counters
>>>>>> > Thomas Rondeau, Tim O?Shea, and Nathan Goergen
>>>>>> >
>>>>>> > You can get one in
>>>>>> http://conferences.sigcomm.org/sigcomm/2013/srif.php
>>>>>> >
>>>>>> > It does not fully describe how it can be used, though, through this
>>>>>> you
>>>>>> > can get a hint.
>>>>>> >
>>>>>> > Regards,
>>>>>> > Jeon.
>>>>>> >
>>>>>> > 2015-08-04 16:36 GMT+09:00 bob wole <[email protected]>:
>>>>>> >
>>>>>> >> Ubuntu 14.04 64-bit
>>>>>> >>
>>>>>> >> I just installed frest gnuradio 3.7.8rc1 with control port
>>>>>> enabled. I
>>>>>> >> fetched gnuradio using
>>>>>> >>
>>>>>> >> git clone --recursive https://github.com/gnuradio/gnuradio.git
>>>>>> >>
>>>>>> >>
>>>>>> >>  Gnuradio enabled component shows
>>>>>> >>
>>>>>> >> * gr-ctrlport
>>>>>> >> * * thrift
>>>>>> >>
>>>>>> >> However, I do not see any *gr-ctrlport directory *inside the
>>>>>> gnuradio
>>>>>> >> directory. Where is the source code for control port? Also there
>>>>>> are no
>>>>>> >> examples for using control port.
>>>>>> >>
>>>>>> >> --
>>>>>> >> Bob
>>>>>> >>
>>>>>> >
>>>>>> You can find more information on these two pages:
>>>>>>
>>>>>> http://jenkins.gnuradio.org/manual/doxygen/page_ctrlport.html
>>>>>>
>>>>>> http://gnuradio.org/redmine/projects/gnuradio/wiki/ControlPort
>>>>>>
>>>>>>
>>>>>> ControlPort was reintroduced just after the 3.7.7 release so we had
>>>>>> time to
>>>>>> test it, but it will be available in the upcoming 3.7.8 release. The
>>>>>> manual
>>>>>> page linked above is from our weekly development builds.
>>>>>>
>>>>>> This points you to two apps that are installed with ControlPort:
>>>>>> gr-perf-monitorx and gr-ctrlport-monitor. Other good places to look
>>>>>> for
>>>>>> usage is in our QA code. Look in gr-blocks
>>>>>> for qa_cpp_py_binding.py, qa_cpp_py_binding_set.py,
>>>>>> and qa_ctrlport_probes.py.
>>>>>>
>>>>>> Tom
>>>>>>
>>>>>>
>>>>>>
>>>>> ControlPort is written in python ?
>>>>>
>>>>> When I ran qa_ctrlport_probes.py. I got a segmentation fault first
>>>>> time. Then I ran the other two qa codes they passed successfully without
>>>>> any core dump. When I ran qa_ctrlport_probes.py again it passed
>>>>> successfully.
>>>>>
>>>>> sdr@sdr-dev:~/gr_examples$ ./qa_ctrlport_probes.py
>>>>> INFO: Apache Thrift: -h sdr-dev -p 57403
>>>>> .....
>>>>> ----------------------------------------------------------------------
>>>>> Ran 5 tests in 0.509s
>>>>>
>>>>> OK
>>>>> *Segmentation fault (core dumped)*
>>>>>
>>>>> sdr@sdr-dev:~/gr_examples$ ./qa_cpp_py_binding.py
>>>>> INFO: Apache Thrift: -h sdr-dev -p 35595
>>>>> ..
>>>>> ----------------------------------------------------------------------
>>>>> Ran 2 tests in 0.105s
>>>>>
>>>>> OK
>>>>>
>>>>> sdr@sdr-dev:~/gr_examples$ ./qa_cpp_py_binding_set.py
>>>>> INFO: Apache Thrift: -h sdr-dev -p 38301
>>>>> ..
>>>>> ----------------------------------------------------------------------
>>>>> Ran 2 tests in 0.134s
>>>>>
>>>>> OK
>>>>>
>>>>> sdr@sdr-dev:~/gr_examples$ ./qa_ctrlport_probes.py
>>>>> INFO: Apache Thrift: -h sdr-dev -p 38644
>>>>> .....
>>>>> ----------------------------------------------------------------------
>>>>> Ran 5 tests in 0.511s
>>>>>
>>>>> OK
>>>>> sdr@sdr-dev:~/gr_examples$ ./qa_ctrlport_probes.py
>>>>> INFO: Apache Thrift: -h sdr-dev -p 48394
>>>>> .....
>>>>> ----------------------------------------------------------------------
>>>>> Ran 5 tests in 0.510s
>>>>>
>>>>> OK
>>>>>
>>>>>
>>>>> What could be the cause?  I thought I should share because it is a new
>>>>> release and is in testing stage.
>>>>>
>>>>>
>>>>> --
>>>>> Bob
>>>>>
>>>>
>>>> There is a bug in Thrift 0.9.2 that I'm going to guess is the cause of
>>>> that seg fault. See our notes on building Thrift and the patch that we have
>>>> for it:
>>>>
>>>> http://gnuradio.org/redmine/projects/gnuradio/wiki/ControlPort
>>>>
>>>> I believe that patch has been accepted, but after the 0.9.2 release.
>>>>
>>>> Tom
>>>>
>>>>
>>>
>>> I am going to apply the patch to thrift. Should I remove and reinstall
>>> gnruadio too after applying patch.
>>>
>>>
>>> --
>>> Bob
>>>
>>
>>
>> No, no need. That's the magic of dynamic linking.
>>
>> Tom
>>
>>
>
>
> Applying the patch was not successful. I am using thrift 0.9.2.
> sdr@sdr-dev:~/thrift$ thrift -version
> Thrift version 0.9.2
>
>
> What version of thrift this patch belongs too?
>
> sdr@sdr-dev:~/thrift$ patch -p1 < thrift-codebase-shutdown-patch.diff
>
> patching file lib/cpp/src/thrift/concurrency/ThreadManager.cpp
> Hunk #1 succeeded at 429 (offset 20 lines).
> patching file lib/cpp/src/thrift/concurrency/ThreadManager.h
> Hunk #1 succeeded at 24 with fuzz 2.
> Hunk #2 FAILED at 60.
> 1 out of 2 hunks FAILED -- saving rejects to file
> lib/cpp/src/thrift/concurrency/ThreadManager.h.rej
> patching file lib/cpp/src/thrift/server/TThreadPoolServer.cpp
> Hunk #1 FAILED at 194.
> 1 out of 1 hunk FAILED -- saving rejects to file
> lib/cpp/src/thrift/server/TThreadPoolServer.cpp.rej
> patching file lib/cpp/src/thrift/server/TThreadPoolServer.h
> Hunk #1 succeeded at 24 with fuzz 1.
> Hunk #2 succeeded at 111 (offset -3 lines).
>
>
> I installed thrift using following link
>
> https://gnuradio.org/redmine/projects/gnuradio/wiki/ControlPort/7
>
>
>
> --
> Bob
>
>
Any thoughts?


--
Bob
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to