'프로그램 사용'에 해당되는 글 2258건

  1. 2022.01.18 valgrind 누수 종류
  2. 2022.01.17 weston client 메모리 누수
  3. 2022.01.14 vaglind 사용
  4. 2022.01.13 wayland buffer
  5. 2022.01.07 RTL-SDR 11시 땡!
  6. 2022.01.07 gqrx 오디오 스트리밍
  7. 2022.01.07 rpi gqrx
  8. 2022.01.07 rtl sdr am
  9. 2022.01.06 wayland client example
  10. 2022.01.06 weston window transform

상세 내용이 있으나 너무 길어서 눈에 안들어 오는데..

아무튼 요약하면 Direct는 일반 포인터, indirect는 링크드 리스크나 멀티 포인터 인데

이중할당해서 이전 할당을 추적하지 않을 경우라고 보면 될 듯.

     Pointer chain            AAA Leak Case   BBB Leak Case
     -------------            -------------   -------------
(1)  RRR ------------> BBB                    DR
(2)  RRR ---> AAA ---> BBB    DR              IR
(3)  RRR               BBB                    DL
(4)  RRR      AAA ---> BBB    DL              IL
(5)  RRR ------?-----> BBB                    (y)DR, (n)DL
(6)  RRR ---> AAA -?-> BBB    DR              (y)IR, (n)DL
(7)  RRR -?-> AAA ---> BBB    (y)DR, (n)DL    (y)IR, (n)IL
(8)  RRR -?-> AAA -?-> BBB    (y)DR, (n)DL    (y,y)IR, (n,y)IL, (_,n)DL
(9)  RRR      AAA -?-> BBB    DL              (y)IL, (n)DL

Pointer chain legend:
- RRR: a root set node or DR block
- AAA, BBB: heap blocks
- --->: a start-pointer
- -?->: an interior-pointer

Leak Case legend:
- DR: Directly reachable
- IR: Indirectly reachable
- DL: Directly lost
- IL: Indirectly lost
- (y)XY: it's XY if the interior-pointer is a real pointer
- (n)XY: it's XY if the interior-pointer is not a real pointer
- (_)XY: it's XY in either case
Every possible case can be reduced to one of the above nine. Memcheck merges some of these cases in its output, resulting in the following four leak kinds.

"Still reachable". This covers cases 1 and 2 (for the BBB blocks) above. A start-pointer or chain of start-pointers to the block is found. Since the block is still pointed at, the programmer could, at least in principle, have freed it before program exit. "Still reachable" blocks are very common and arguably not a problem. So, by default, Memcheck won't report such blocks individually.

"Definitely lost". This covers case 3 (for the BBB blocks) above. This means that no pointer to the block can be found. The block is classified as "lost", because the programmer could not possibly have freed it at program exit, since no pointer to it exists. This is likely a symptom of having lost the pointer at some earlier point in the program. Such cases should be fixed by the programmer.

"Indirectly lost". This covers cases 4 and 9 (for the BBB blocks) above. This means that the block is lost, not because there are no pointers to it, but rather because all the blocks that point to it are themselves lost. For example, if you have a binary tree and the root node is lost, all its children nodes will be indirectly lost. Because the problem will disappear if the definitely lost block that caused the indirect leak is fixed, Memcheck won't report such blocks individually by default.

"Possibly lost". This covers cases 5--8 (for the BBB blocks) above. This means that a chain of one or more pointers to the block has been found, but at least one of the pointers is an interior-pointer. This could just be a random value in memory that happens to point into a block, and so you shouldn't consider this ok unless you know you have interior-pointers.

[링크 : https://valgrind.org/docs/manual/mc-manual.html#mc-manual.leaks]

 

"still reachable" (memory that is pointed to by a pointer).
"directly lost" (memory that is not pointed to be any live pointer)
"indirectly lost" (memory that is pointed to by a pointer that is in memory that is "directly lost)
"possibly lost" (memory that is pointed to, but the pointer does not point to the start of the memory).

[링크 : https://stackoverflow.com/questions/24201561/valgrind-memory-leak-log]

 

 

'프로그램 사용 > valgrind' 카테고리의 다른 글

valgrind callgrind  (0) 2023.07.07
vaglind 사용  (0) 2022.01.14
valgrind 지원 플랫폼  (0) 2014.10.15
valgrind GUI frontend- kcachegrind / valkyrie  (0) 2014.10.15
Posted by 구차니
프로그램 사용/wayland2022. 1. 17. 17:36

누수는 누수인데 늘어나진 않는 누수인 것 같아서 일단 패스.

 

[링크 : https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/18]

'프로그램 사용 > wayland' 카테고리의 다른 글

wayland wl_fixed_t 변수  (0) 2022.02.07
wayvnc  (0) 2022.01.24
wayland buffer  (0) 2022.01.13
wayland client example  (0) 2022.01.06
weston window transform  (0) 2022.01.06
Posted by 구차니

 

valgrind --leak-check=full ./run_file

[링크 : https://m.blog.naver.com/cksdn788/220380070991]

'프로그램 사용 > valgrind' 카테고리의 다른 글

valgrind callgrind  (0) 2023.07.07
valgrind 누수 종류  (0) 2022.01.18
valgrind 지원 플랫폼  (0) 2014.10.15
valgrind GUI frontend- kcachegrind / valkyrie  (0) 2014.10.15
Posted by 구차니
프로그램 사용/wayland2022. 1. 13. 10:13

wayland screenshooter에서 shared memory를 이용하여

캡쳐한 이미지를 공유하는데 해당 내용에 대한 정리가 잘되어 있어서 링크!

 

[링크 : https://nemoux00.wordpress.com/2014/02/13/wayland-버퍼-관리/]

[링크 : https://wayland-book.com/surfaces/shared-memory.html]

'프로그램 사용 > wayland' 카테고리의 다른 글

wayvnc  (0) 2022.01.24
weston client 메모리 누수  (0) 2022.01.17
wayland client example  (0) 2022.01.06
weston window transform  (0) 2022.01.06
weston-screenshooter 실행에러  (0) 2022.01.05
Posted by 구차니

두개 방송국이 같이 보이는데 동시에 땡~! 해주니까 파형도 이쁘게 종모양으로 나온다.

어떻게 보면..  AND 게이트 3개가 보이는 느낌이네 ㅋㅋ

 

'프로그램 사용 > rtl-sdr' 카테고리의 다른 글

rtl sdr 다중 채널 디코딩  (0) 2022.08.30
ubuntu 18.04에 사운드 카드가 갑자기 사라졌다?  (0) 2022.07.20
gqrx 오디오 스트리밍  (0) 2022.01.07
rpi gqrx  (0) 2022.01.07
rtl sdr am  (0) 2022.01.07
Posted by 구차니

gqrx에 네트워크로 스트리밍 하는 옵션을 본 것 같은데 

찾아보니 오디오를 스트리밍 하고 해당 기능은 아래 명령을 이용하여 aplay로 재생이 가능 하다고..

 

$ nc -l -u 7355 | aplay -r 48k -f S16_LE -t raw -c 1

[링크 : https://gqrx.dk/doc/streaming-audio-over-udp]

'프로그램 사용 > rtl-sdr' 카테고리의 다른 글

ubuntu 18.04에 사운드 카드가 갑자기 사라졌다?  (0) 2022.07.20
RTL-SDR 11시 땡!  (0) 2022.01.07
rpi gqrx  (0) 2022.01.07
rtl sdr am  (0) 2022.01.07
/dev/dsp snd pcm  (0) 2021.12.27
Posted by 구차니

호오.. 소스로 받아서 하면 된다는데

라즈베리 파이 3 정도면 FFT 사이즈를 줄이면(PC에서는 64K 정도지만..) 가능은 한 듯?

 

Tudor has also reduced the FFT size to 8192 points and the FFT rate to 15 Hz, which helps keep the CPU load low.

Download Gqrx for the Raspberry Pi 3

[링크 : https://gqrx.dk/blog/airspy-hf-and-gqrx-running-on-raspberry-pi]

[링크 : https://gqrx.dk/download/gqrx-sdr-for-the-raspberry-pi]

'프로그램 사용 > rtl-sdr' 카테고리의 다른 글

RTL-SDR 11시 땡!  (0) 2022.01.07
gqrx 오디오 스트리밍  (0) 2022.01.07
rtl sdr am  (0) 2022.01.07
/dev/dsp snd pcm  (0) 2021.12.27
rtl-sdr noaa 안테나 만들어서 재시도  (0) 2021.12.27
Posted by 구차니

생각해보니.. direct_samp 주고 리눅스에서 해보고

윈도우에서는 i branch, q branch 둘다 해봤는지 기억이 안나네

 

[링크 : https://www.youtube.com/watch?v=I6Kh9A1Nd_s]

 

+

rtl_tcp 에서 옵션을 보는데 direct sampling에 대한 건 없는 듯..

$ rtl_tcp --help
rtl_tcp: invalid option -- '-'
rtl_tcp, an I/Q spectrum server for RTL2832 based DVB-T receivers

Usage:  [-a listen address]
        [-p listen port (default: 1234)]
        [-f frequency to tune to [Hz]]
        [-g gain (default: 0 for auto)]
        [-s samplerate in Hz (default: 2048000 Hz)]
        [-b number of buffers (default: 15, set by library)]
        [-n max number of linked list buffers to keep (default: 500)]
        [-d device index (default: 0)]
        [-P ppm_error (default: 0)]
        [-T enable bias-T on GPIO PIN 0 (works for rtl-sdr.com v3 dongles)

'프로그램 사용 > rtl-sdr' 카테고리의 다른 글

gqrx 오디오 스트리밍  (0) 2022.01.07
rpi gqrx  (0) 2022.01.07
/dev/dsp snd pcm  (0) 2021.12.27
rtl-sdr noaa 안테나 만들어서 재시도  (0) 2021.12.27
부품 도착! + 공짜 도착!  (2) 2021.12.27
Posted by 구차니

surface (그려질 영역)

shell surface (창 최소화,최대,닫기 창이름 등 셸 디자인 영역)

근데 git에 있는 cilent 예제에서는 window.c로 랩핑해놔서 아래 소스랑 비교해서 분석하는게 쉽지 않다.

 

[링크 : https://jan.newmarch.name/Wayland/ProgrammingClient/]

'프로그램 사용 > wayland' 카테고리의 다른 글

weston client 메모리 누수  (0) 2022.01.17
wayland buffer  (0) 2022.01.13
weston window transform  (0) 2022.01.06
weston-screenshooter 실행에러  (0) 2022.01.05
weston 단축키  (0) 2022.01.04
Posted by 구차니

wayland 에서 output 버퍼를 뒤집는거라

정상적으로 작동하는 느낌이 아니라

데스크 탑 셀 부분까지 강제로 뒤집어서 오작동 하는 느낌?

fullscreen 예제에서는 정상작동하지만 데스크 탑 셀이 없다보니

데스크탑 셀이 있으면 정상적으로 작동 안하는 걸지도?

 

int
window_get_buffer_transform(struct window *window);

void
window_set_buffer_transform(struct window *window,
    enum wl_output_transform transform);

 

normal
0 - no transform
90
1 - 90 degrees counter-clockwise
180
2 - 180 degrees counter-clockwise
270
3 - 270 degrees counter-clockwise
flipped
4 - 180 degree flip around a vertical axis
flipped_90
5 - flip and rotate 90 degrees counter-clockwise
flipped_180
6 - flip and rotate 180 degrees counter-clockwise
flipped_270
7 - flip and rotate 270 degrees counter-clockwise

[링크 : https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_output-enum-transform]

'프로그램 사용 > wayland' 카테고리의 다른 글

wayland buffer  (0) 2022.01.13
wayland client example  (0) 2022.01.06
weston-screenshooter 실행에러  (0) 2022.01.05
weston 단축키  (0) 2022.01.04
weston.ini same-as on output section  (0) 2022.01.03
Posted by 구차니