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

  1. 2023.07.10 gcovr - gocv 를 html로
  2. 2023.07.10 gprof gui
  3. 2023.07.07 valgrind callgrind
  4. 2023.07.04 fft window type과 진폭 보정계수
  5. 2023.07.03 fft window 함수
  6. 2023.06.23 shell과 nc를 이용하여 주기적으로 데이터 보내기
  7. 2023.06.21 pxe boot
  8. 2023.06.16 중첩가상화
  9. 2023.06.15 pFFFT 사용법
  10. 2023.06.15 barrier on ubuntu 22.04 실패! 2

 

$ gcovr 
(WARNING) GCOV produced the following errors processing /proj/bin/app-config.gcno:
/proj/bin/app-config.gcda:cannot open data file, assuming not executed
Cannot open source file config.c

 

 

gcovr -r ../.. --html-details -o ../../../coverage.html ...

[링크 : https://github.com/gcovr/gcovr/issues/368]

 

GCOVR(1)                                                    User Commands                                                    GCOVR(1)

NAME
       gcovr - generate simple coverage reports

DESCRIPTION
       usage: gcovr [options] [search_paths...]

       A utility to run gcov and summarize the coverage in simple reports.

OPTIONS
       -h, --help
              Show this help message, then exit.

       --version
              Print the version number, then exit.

       -v, --verbose
              Print progress messages. Please include this output in bug reports.

       -r ROOT, --root ROOT
              The  root  directory  of your source files. Defaults to '.', the current directory. File names are reported relative to
              this root. The --root is the default --filter.

 

You can use __gcov_flush() method inside your code. You will need to invoke this from registered signal handler.

[링크 : https://stackoverflow.com/questions/13957649/gcov-not-showing-any-coverage-data]

 

Note the comment by Paweł Bylica -- __gcov_flush() has been removed in GCC 11, you should use __gcov_dump().

[링크 : https://stackoverflow.com/questions/19655479/undefined-reference-to-gcov-flush]

 

 

[링크 : https://educoder.tistory.com/entry/소프트웨어-공학gcov테스트-커버리지-측정]

  [링크 : https://gcovr.com/en/stable/guide.html]

[링크 : https://jchern.tistory.com/16]

[링크 : https://velog.io/@kongsub/GCOV-사용해보기-Lab1-Triangle]

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

gcov와 gcovr  (0) 2023.07.20
gprof gui  (0) 2023.07.10
gcc -p -pg  (0) 2016.02.25
gprof flat view 이해하기  (0) 2010.01.24
gcov, gprof  (0) 2010.01.23
Posted by 구차니

 

gprof 의 텍스트 결과는 솔찍히 보기 편하다고는 할 수 없는데, 그래서 gui를 찾아보는 중

 

[링크 : https://github.com/jrfonseca/gprof2dot]

   [링크 : https://stackoverflow.com/questions/2439060]

 

역시 역사와 전통의(?) k접두인가..

[링크 : https://kprof.sourceforge.net/]

 

solaris나 motif 같네? 아무튼 cgprof 라는 툴은 call graph로 그려준다.

[링크 : http://mvertes.free.fr/]

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

gcov와 gcovr  (0) 2023.07.20
gcovr - gocv 를 html로  (0) 2023.07.10
gcc -p -pg  (0) 2016.02.25
gprof flat view 이해하기  (0) 2010.01.24
gcov, gprof  (0) 2010.01.23
Posted by 구차니

valgrind는 일반적으로 메모리 누수를 찾는데 쓰지만

call graph라고 해야하나? call 관련 추적도 가능하다고 하니 다음에 돌려봐야겠다.

 tool에 여러가지 있는데 cachegrind 정도만 찾아봤던 흔적이 있네..

 

$ valgrind --tool=
32bit-core     arm-core       i386           mips64-cpu     power64-linux
32bit-linux    arm-vfpv3      lackey         mips64-fpu     powerpc
32bit-sse      arm-with       massif         none           s390-acr
64bit-avx      cachegrind     memcheck       power-altivec  s390-fpr
64bit-core     callgrind      mips           power-core     s390-vx
64bit-linux    dhat           mips-cp0       power-fpu      s390x
64bit-sse      drd            mips-cpu       power-linux    s390x-core64
amd64          exp-bbv        mips-fpu       power-vsx      s390x-linux64
amd64-avx      getoff         mips64         power64-core   s390x-vx
arm            helgrind       mips64-cp0     power64-core2  

 

 

[링크 : https://jchern.tistory.com/13]

[링크 : https://velog.io/@wjddms206/Valgrind-프로파일러-callgrind]

 

 

+

[링크 : http://www.cs.columbia.edu/~sedwards/presentations/iccad2003-somenzi.pdf]

[링크 : https://fileadmin.cs.lth.se/cs/Education/EDAF15/labs/lab4/index.html]

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

valgrind 누수 종류  (0) 2022.01.18
vaglind 사용  (0) 2022.01.14
valgrind 지원 플랫폼  (0) 2014.10.15
valgrind GUI frontend- kcachegrind / valkyrie  (0) 2014.10.15
Posted by 구차니

Uniform은 rectangular 인 것 같고(1이니까)

그 외에는... Energy correction은 어떻게 써먹어야 하려나?

 

 

[링크 : https://community.sw.siemens.com/s/article/window-correction-factors]

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

tek.com fft 관련 문서  (0) 2023.07.19
sfft  (0) 2023.07.12
fft window 함수  (0) 2023.07.03
pFFFT 사용법  (0) 2023.06.15
fft 결과의 amplitude가 0.5가 나오는 이유  (0) 2023.06.13
Posted by 구차니

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

sfft  (0) 2023.07.12
fft window type과 진폭 보정계수  (0) 2023.07.04
pFFFT 사용법  (0) 2023.06.15
fft 결과의 amplitude가 0.5가 나오는 이유  (0) 2023.06.13
overlap kissfft  (0) 2023.06.12
Posted by 구차니
프로그램 사용/nc2023. 6. 23. 15:22

원하는건 좀 달라서 수정이 필요한데.. 아이디어는 아래 글에서 발견

while echo "hello"; do
  sleep 20
done | nc -q 192.168.100.161 2612

[링크 : https://stackoverflow.com/questions/44078540]

 

echo는 while 문에서 주기적으로 생성하고

done 에서 파이프 라인으로 연결해주면 끝!

$ cat nc2.sh 
target=192.168.0.100

while [ 1 ]
do
  echo -n -e "\x01\x02\x03\x04\x05\x06"
  sleep 1
done | nc ${target} 6000 | hexdump -C

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

nc 엔터 없이 보내기  (0) 2024.01.17
nc -k 옵션  (0) 2021.11.19
Posted by 구차니

 

 

나중에 한번 다시 시도해볼까..

[링크 : https://getmovie.tistory.com/entry/리눅스로-만능-PXE-서버-만들기-1]

 

'프로그램 사용 > PXE(네트워크 부트)' 카테고리의 다른 글

DHCP hostname  (0) 2020.10.14
DHCP / BOOTP / TFTP  (4) 2010.04.27
PXE 부팅하기  (0) 2010.04.25
PXE를 통한 우분투/XP 설치  (0) 2009.12.09
Posted by 구차니

 

[링크 : https://www.redhat.com/en/blog/inception-how-usable-are-nested-kvm-guests]

 

성능에 대한 고려사항

하드웨어 지원 중첩된 가상화의 경우에도 중첩된 VM은 CPU에 종속된 워크로드의 경우 성능이 10% 이상 저하되고, 입력/출력에 종속된 워크로드는 성능이 10% 넘게 저하될 수 있습니다.

[링크 : https://cloud.google.com/compute/docs/instances/nested-virtualization/overview?hl=ko]

 

 

# cat /etc/modprobe.d/kvm-nested-module.conf
options kvm-intel nested=1
# cat /sys/module/kvm_intel/parameters/nested
Y

[링크 : https://chhanz.github.io/linux/2019/12/30/enable-kvm-nested-virtualization/]

'프로그램 사용 > kvm(virt-manager)' 카테고리의 다른 글

kvm cpuinfo proc hide  (0) 2020.01.19
kvm ubuntu Xorg cpu 100% 문제  (0) 2019.10.10
kvm/qemu 로그 위치  (0) 2019.10.07
kvm core 을 guest에 할당하기(affinity)  (0) 2019.08.28
virsh host only network  (0) 2019.07.09
Posted by 구차니

자세한 설명이 없어서 대충 혼돈의 카오스중..

pffft_transform()이 가장 처음 접하는 함수이긴 한데 이걸로 하니 1Hz가 아니라 4Hz에 진동이 있는걸로 검출이 되서

pffft_transform_ordered()로 바꾸니 의도한 대로 분석이 되서 일단 쓰는데, 무슨 차이인진 모르겠다.

 

int n = 32000;
int nc = ( n / 2 ) + 1;

int Nfloat = n;
int Nbytes = Nfloat * sizeof(float);

float *X = pffft_aligned_malloc(Nbytes);
float *Y = pffft_aligned_malloc(Nbytes);
float *Z = pffft_aligned_malloc(Nbytes);

PFFFT_Setup *s = pffft_new_setup(n, PFFFT_REAL);

for(int i = 0; i < 8; i++)
    pffft_transform_ordered(s, X, Z, 0, PFFFT_FORWARD);
for ( i = 0; i < nc; i++ )
    printf ( "  %3d,%12f,%12f,%12f,%12f,%12f\n", i, Z[i*2], Z[i*2+1],  
        sqrt(Z[i*2] * Z[i*2] +  Z[i*2+1] * Z[i*2+1]),
        atan2(Z[i*2+1], Z[i*2]),
        atan2(Z[i*2+1], Z[i*2]) * 180 / PI
    );

pffft_aligned_free(Z);
pffft_aligned_free(Y);
pffft_aligned_free(X);
pffft_destroy_setup(s);

[링크 : https://bitbucket.org/jpommier/pffft/src/master/]

 

성능비교 테스트. pffft가  double을 미지원하는 것을 제외하면 최소 4배는 빠르게 처리한다고 보면 될 듯.

(complex는 double이 되긴 한데 real은 float만 되는 듯?)

fftw
2023-06-15 02:40:48.089
2023-06-15 02:40:48.109 --- plan 생성 20ms
2023-06-15 02:40:48.133 --- 32k 8ch 연산 23~24ms

pffft
2023-06-15 02:40:48.136
2023-06-15 02:40:48.139 --- plan 생성 3ms
2023-06-15 02:40:48.146 --- 32k 8ch 연산 6~7ms

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

fft window type과 진폭 보정계수  (0) 2023.07.04
fft window 함수  (0) 2023.07.03
fft 결과의 amplitude가 0.5가 나오는 이유  (0) 2023.06.13
overlap kissfft  (0) 2023.06.12
fft size overlap window size  (0) 2023.06.12
Posted by 구차니
프로그램 사용/synergy2023. 6. 15. 10:27

접속도 다 정상적으로 되는데 마우스가 안넘어 간다.

그래서 찾아보니 barrier가 wayland를 지원하지 않아 발생하는 문제일 듯.

 

아무튼 로그인 시에 세션을 ubuntu x.org로 선택하니 문제없이 작동한다.

[링크 : https://github.com/debauchee/barrier/issues/1659]

 

하여간에.. 멀 하던.. wayland는 갈길이 먼가...

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

synergyc - synergy client for linux  (2) 2010.03.20
시너지 (Synergy) for linux  (4) 2010.01.15
시너지 (Synergy) - KVM 프로그램(?)  (4) 2009.11.13
Posted by 구차니