'Linux' 카테고리의 다른 글
mpx - Multi-pointer X (0) | 2022.12.27 |
---|---|
간단한 코어덤프 유발 프로그램 (1) | 2022.12.22 |
strip debug symbol 날리기 (0) | 2022.12.07 |
systemctl status 전체 로그 보기 (0) | 2022.11.30 |
리눅스 경로 / 와 // 와 /// (0) | 2022.11.01 |
mpx - Multi-pointer X (0) | 2022.12.27 |
---|---|
간단한 코어덤프 유발 프로그램 (1) | 2022.12.22 |
strip debug symbol 날리기 (0) | 2022.12.07 |
systemctl status 전체 로그 보기 (0) | 2022.11.30 |
리눅스 경로 / 와 // 와 /// (0) | 2022.11.01 |
debug 심볼은 당연히(?) 같이 날아갈줄 알았는데 안 날아간다.
$ strip --strip-debug |
[링크 : https://stackoverflow.com/questions/45127130/why-doesnt-strip-remove-these-debug-symbols]
간단한 코어덤프 유발 프로그램 (1) | 2022.12.22 |
---|---|
libgpiod (0) | 2022.12.16 |
systemctl status 전체 로그 보기 (0) | 2022.11.30 |
리눅스 경로 / 와 // 와 /// (0) | 2022.11.01 |
리눅스 프로세스 숨기기 (0) | 2022.08.31 |
Just use the journalctl command, as in: $ journalctl -u service-name.service Or, to see only log messages for the current boot: $ journalctl -u service-name.service -b |
[링크 : https://unix.stackexchange.com/questions/225401/how-to-see-full-log-from-systemctl-status-service]
libgpiod (0) | 2022.12.16 |
---|---|
strip debug symbol 날리기 (0) | 2022.12.07 |
리눅스 경로 / 와 // 와 /// (0) | 2022.11.01 |
리눅스 프로세스 숨기기 (0) | 2022.08.31 |
uvcdynctrl (0) | 2022.07.06 |
bt 로 시작하는 프로그램이 몇 개 있긴한데 이녀석들은 정체를 모르겠고
btattach btmgmt btmon |
아래의 패키지를 설치해야 한다고 한다.
$ sudo apt install bluez-tools $ sudo bt-device -l |
[링크 : https://br-brg.tistory.com/86]
tcpdump 를 이용하면 블루투스 데이터를 pcap 포맷으로 저장해서 wireshark에서 볼 수 있을 듯?
음.. gear vr은 HID가 아니라 안걸려지는건가..
$ tcpdump -D 1.enx00e04c680108 [Up, Running] 2.any (Pseudo-device that captures on all interfaces) [Up, Running] 3.lo [Up, Running, Loopback] 4.docker0 [Up] 5.bluetooth0 (Bluetooth adapter number 0) 6.nflog (Linux netfilter log (NFLOG) interface) 7.nfqueue (Linux netfilter queue (NFQUEUE) interface) 8.wlo1 9.usbmon1 (USB bus number 1) 10.usbmon2 (USB bus number 2) |
$ tcpdump -i bluetooth0 -w bluetooth0_capture_12_12.pcap tcpdump: listening on bluetooth0, link-type BLUETOOTH_HCI_H4_WITH_PHDR (Bluetooth HCI UART transport layer plus pseudo-header), capture size 262144 bytes ^C0 packets captured 6420 packets received by filter 0 packets dropped by kernel |
[링크 : https://www.agnosticdev.com/content/how-capture-bluetooth-traffic-tcpdump-linux]
gTile (0) | 2023.01.31 |
---|---|
ubuntu coredump 생성하기 (0) | 2022.12.22 |
cpuid (0) | 2022.10.17 |
ubuntu 22.04 LTS (0) | 2022.04.27 |
minicom stty (0) | 2022.04.25 |
가끔 실수로 / 대신 //를 넣으면서 쓰긴 했는데
찾다보니 ///도 /와 동일하게 작동은 한다고 한다.
그런데 도대체. 무슨 표준으로 작동하는진 잘 안보네
~$ cd // //$ cd - ~$ cd / /$ cd - ~$ cd /// /$ cd - ~$ |
[링크 : https://askubuntu.com/questions/23808/what-is-the-double-slash-directory]
[링크 : https://unix.stackexchange.com/questions/256497/on-what-systems-is-foo-bar-different-from-foo-bar]
strip debug symbol 날리기 (0) | 2022.12.07 |
---|---|
systemctl status 전체 로그 보기 (0) | 2022.11.30 |
리눅스 프로세스 숨기기 (0) | 2022.08.31 |
uvcdynctrl (0) | 2022.07.06 |
dmesg -w (0) | 2022.06.30 |
맨날
$ cat /proc/cpuinfo
로 확인했는데 편하게 보는 유틸리티가 있었다니..
$ cpuid CPU 0: vendor_id = "GenuineIntel" version information (1/eax): processor type = primary processor (0) family = Intel Pentium Pro/II/III/Celeron/Core/Core 2/Atom, AMD Athlon/Duron, Cyrix M2, VIA C3 (6) model = 0xe (14) stepping id = 0xc (12) extended family = 0x0 (0) extended model = 0x8 (8) (simple synth) = Intel m3-7Y00 / i5-7Y00 / i7-7Y00 / i3-7000U / i5-7000U / i7-7000U / Pentium 4410Y / 4415U / Celeron 3965Y / 3865U / 3965U (Kaby Lake), 14nm miscellaneous (1/ebx): process local APIC physical ID = 0x0 (0) cpu count = 0x10 (16) CLFLUSH line size = 0x8 (8) brand index = 0x0 (0) brand id = 0x00 (0): unknown feature information (1/edx): x87 FPU on chip = true virtual-8086 mode enhancement = true debugging extensions = true page size extensions = true time stamp counter = true RDMSR and WRMSR support = true physical address extensions = true machine check exception = true CMPXCHG8B inst. = true APIC on chip = true SYSENTER and SYSEXIT = true memory type range registers = true PTE global bit = true machine check architecture = true conditional move/compare instruction = true page attribute table = true page size extension = true processor serial number = false CLFLUSH instruction = true debug store = true thermal monitor and clock ctrl = true MMX Technology = true FXSAVE/FXRSTOR = true SSE extensions = true SSE2 extensions = true self snoop = true hyper-threading / multi-core supported = true therm. monitor = true IA64 = false pending break event = true feature information (1/ecx): PNI/SSE3: Prescott New Instructions = true PCLMULDQ instruction = true 64-bit debug store = true MONITOR/MWAIT = true CPL-qualified debug store = true VMX: virtual machine extensions = true SMX: safer mode extensions = false Enhanced Intel SpeedStep Technology = true thermal monitor 2 = true SSSE3 extensions = true context ID: adaptive or shared L1 data = false FMA instruction = true CMPXCHG16B instruction = true xTPR disable = true perfmon and debug = true process context identifiers = true direct cache access = false SSE4.1 extensions = true SSE4.2 extensions = true extended xAPIC support = true MOVBE instruction = true POPCNT instruction = true time stamp counter deadline = true AES instruction = true XSAVE/XSTOR states = true OS-enabled XSAVE/XSTOR = true AVX: advanced vector extensions = true F16C half-precision convert instruction = true RDRAND instruction = true hypervisor guest status = false cache and TLB information (2): 0x63: data TLB: 1G pages, 4-way, 4 entries 0x03: data TLB: 4K pages, 4-way, 64 entries 0x76: instruction TLB: 2M/4M pages, fully, 8 entries 0xff: cache data is in CPUID 4 0xb5: instruction TLB: 4K, 8-way, 64 entries 0xf0: 64 byte prefetching 0xc3: L2 TLB: 4K/2M pages, 6-way, 1536 entries processor serial number: 0008-06EC-0000-0000-0000-0000 deterministic cache parameters (4): --- cache 0 --- cache type = data cache (1) cache level = 0x1 (1) self-initializing cache level = true fully associative cache = false extra threads sharing this cache = 0x1 (1) extra processor cores on this die = 0x7 (7) system coherency line size = 0x3f (63) physical line partitions = 0x0 (0) ways of associativity = 0x7 (7) ways of associativity = 0x0 (0) WBINVD/INVD behavior on lower caches = false inclusive to lower caches = false complex cache indexing = false number of sets - 1 (s) = 63 --- cache 1 --- cache type = instruction cache (2) cache level = 0x1 (1) self-initializing cache level = true fully associative cache = false extra threads sharing this cache = 0x1 (1) extra processor cores on this die = 0x7 (7) system coherency line size = 0x3f (63) physical line partitions = 0x0 (0) ways of associativity = 0x7 (7) ways of associativity = 0x0 (0) WBINVD/INVD behavior on lower caches = false inclusive to lower caches = false complex cache indexing = false number of sets - 1 (s) = 63 --- cache 2 --- cache type = unified cache (3) cache level = 0x2 (2) self-initializing cache level = true fully associative cache = false extra threads sharing this cache = 0x1 (1) extra processor cores on this die = 0x7 (7) system coherency line size = 0x3f (63) physical line partitions = 0x0 (0) ways of associativity = 0x3 (3) ways of associativity = 0x0 (0) WBINVD/INVD behavior on lower caches = false inclusive to lower caches = false complex cache indexing = false number of sets - 1 (s) = 1023 --- cache 3 --- cache type = unified cache (3) cache level = 0x3 (3) self-initializing cache level = true fully associative cache = false extra threads sharing this cache = 0xf (15) extra processor cores on this die = 0x7 (7) system coherency line size = 0x3f (63) physical line partitions = 0x0 (0) ways of associativity = 0xf (15) ways of associativity = 0x6 (6) WBINVD/INVD behavior on lower caches = false inclusive to lower caches = true complex cache indexing = true number of sets - 1 (s) = 8191 MONITOR/MWAIT (5): smallest monitor-line size (bytes) = 0x40 (64) largest monitor-line size (bytes) = 0x40 (64) enum of Monitor-MWAIT exts supported = true supports intrs as break-event for MWAIT = true number of C0 sub C-states using MWAIT = 0x0 (0) number of C1 sub C-states using MWAIT = 0x2 (2) number of C2 sub C-states using MWAIT = 0x1 (1) number of C3 sub C-states using MWAIT = 0x2 (2) number of C4 sub C-states using MWAIT = 0x4 (4) number of C5 sub C-states using MWAIT = 0x1 (1) number of C6 sub C-states using MWAIT = 0x1 (1) number of C7 sub C-states using MWAIT = 0x1 (1) Thermal and Power Management Features (6): digital thermometer = true Intel Turbo Boost Technology = true ARAT always running APIC timer = true PLN power limit notification = true ECMD extended clock modulation duty = true PTM package thermal management = true HWP base registers = true HWP notification = true HWP activity window = true HWP energy performance preference = true HWP package level request = false HDC base registers = true digital thermometer thresholds = 0x2 (2) ACNT/MCNT supported performance measure = true ACNT2 available = false performance-energy bias capability = true extended feature flags (7): FSGSBASE instructions = true IA32_TSC_ADJUST MSR supported = true SGX: Software Guard Extensions supported = true BMI instruction = true HLE hardware lock elision = false AVX2: advanced vector extensions 2 = true FDP_EXCPTN_ONLY = false SMEP supervisor mode exec protection = true BMI2 instructions = true enhanced REP MOVSB/STOSB = true INVPCID instruction = true RTM: restricted transactional memory = false QM: quality of service monitoring = false deprecated FPU CS/DS = true intel memory protection extensions = true PQE: platform quality of service enforce = false AVX512F: AVX-512 foundation instructions = false AVX512DQ: double & quadword instructions = false RDSEED instruction = true ADX instructions = true SMAP: supervisor mode access prevention = true AVX512IFMA: fused multiply add = false CLFLUSHOPT instruction = true CLWB instruction = false Intel processor trace = true AVX512PF: prefetch instructions = false AVX512ER: exponent & reciprocal instrs = false AVX512CD: conflict detection instrs = false SHA instructions = false AVX512BW: byte & word instructions = false AVX512VL: vector length = false PREFETCHWT1 = false AVX512VBMI: vector byte manipulation = false UMIP: user-mode instruction prevention = false PKU protection keys for user-mode = false OSPKE CR4.PKE and RDPKRU/WRPKRU = false BNDLDX/BNDSTX MAWAU value in 64-bit mode = 0x0 (0) RDPID: read processor D supported = false SGX_LC: SGX launch config supported = false AVX512_4VNNIW: neural network instrs = false AVX512_4FMAPS: multiply acc single prec = false Direct Cache Access Parameters (9): PLATFORM_DCA_CAP MSR bits = 0 Architecture Performance Monitoring Features (0xa/eax): version ID = 0x4 (4) number of counters per logical processor = 0x4 (4) bit width of counter = 0x30 (48) length of EBX bit vector = 0x7 (7) Architecture Performance Monitoring Features (0xa/ebx): core cycle event not available = false instruction retired event not available = false reference cycles event not available = false last-level cache ref event not available = false last-level cache miss event not avail = false branch inst retired event not available = false branch mispred retired event not avail = false Architecture Performance Monitoring Features (0xa/edx): number of fixed counters = 0x3 (3) bit width of fixed counters = 0x30 (48) x2APIC features / processor topology (0xb): --- level 0 (thread) --- bits to shift APIC ID to get next = 0x1 (1) logical processors at this level = 0x2 (2) level number = 0x0 (0) level type = thread (1) extended APIC ID = 0 --- level 1 (core) --- bits to shift APIC ID to get next = 0x4 (4) logical processors at this level = 0x8 (8) level number = 0x1 (1) level type = core (2) extended APIC ID = 0 XSAVE features (0xd/0): XCR0 lower 32 bits valid bit field mask = 0x0000001f XCR0 upper 32 bits valid bit field mask = 0x00000000 XCR0 supported: x87 state = true XCR0 supported: SSE state = true XCR0 supported: AVX state = true XCR0 supported: MPX BNDREGS = true XCR0 supported: MPX BNDCSR = true XCR0 supported: AVX-512 opmask = false XCR0 supported: AVX-512 ZMM_Hi256 = false XCR0 supported: AVX-512 Hi16_ZMM = false IA32_XSS supported: PT state = false XCR0 supported: PKRU state = false bytes required by fields in XCR0 = 0x00000440 (1088) bytes required by XSAVE/XRSTOR area = 0x00000440 (1088) XSAVE features (0xd/1): XSAVEOPT instruction = true XSAVEC instruction = true XGETBV instruction = true XSAVES/XRSTORS instructions = true SAVE area size in bytes = 0x000003c0 (960) IA32_XSS lower 32 bits valid bit field mask = 0x00000100 IA32_XSS upper 32 bits valid bit field mask = 0x00000000 AVX/YMM features (0xd/2): AVX/YMM save state byte size = 0x00000100 (256) AVX/YMM save state byte offset = 0x00000240 (576) supported in IA32_XSS or XCR0 = XCR0 (user state) 64-byte alignment in compacted XSAVE = false MPX BNDREGS features (0xd/3): MPX BNDREGS save state byte size = 0x00000040 (64) MPX BNDREGS save state byte offset = 0x000003c0 (960) supported in IA32_XSS or XCR0 = XCR0 (user state) 64-byte alignment in compacted XSAVE = false MPX BNDCSR features (0xd/4): MPX BNDCSR save state byte size = 0x00000040 (64) MPX BNDCSR save state byte offset = 0x00000400 (1024) supported in IA32_XSS or XCR0 = XCR0 (user state) 64-byte alignment in compacted XSAVE = false PT features (0xd/8): PT save state byte size = 0x00000080 (128) PT save state byte offset = 0x00000000 (0) supported in IA32_XSS or XCR0 = IA32_XSS (supervisor state) 64-byte alignment in compacted XSAVE = false Quality of Service Monitoring Resource Type (0xf/0): Maximum range of RMID = 0 supports L3 cache QoS monitoring = false Resource Director Technology allocation (0x10/0): L3 cache allocation technology supported = false L2 cache allocation technology supported = false 0x00000011 0x00: eax=0x00000000 ebx=0x00000000 ecx=0x00000000 edx=0x00000000 SGX capability (0x12/0): SGX1 supported = false SGX2 supported = false MISCSELECT.EXINFO supported: #PF & #GP = false MaxEnclaveSize_Not64 (log2) = 0x0 (0) MaxEnclaveSize_64 (log2) = 0x0 (0) 0x00000013 0x00: eax=0x00000000 ebx=0x00000000 ecx=0x00000000 edx=0x00000000 Intel Processor Trace (0x14): IA32_RTIT_CR3_MATCH is accessible = true configurable PSB & cycle-accurate = true IP & TraceStop filtering; PT preserve = true MTC timing packet; suppress COFI-based = true PTWRITE support = false power event trace support = false IA32_RTIT_CTL can enable tracing = true ToPA can hold many output entries = true single-range output scheme = true output to trace transport = false IP payloads have LIP values & CS = false configurable address ranges = 0x2 (2) supported MTC periods bitmask = 0x249 (585) supported cycle threshold bitmask = 0x3fff (16383) supported config PSB freq bitmask = 0x3f (63) Time Stamp Counter/Core Crystal Clock Information (0x15): TSC/clock ratio = 192/2 nominal core crystal clock = 0 Hz Processor Frequency Information (0x16): Core Base Frequency (MHz) = 0x8fc (2300) Core Maximum Frequency (MHz) = 0x1324 (4900) Bus (Reference) Frequency (MHz) = 0x64 (100) extended feature flags (0x80000001/edx): SYSCALL and SYSRET instructions = true execution disable = true 1-GB large page support = true RDTSCP = true 64-bit extensions technology available = true Intel feature flags (0x80000001/ecx): LAHF/SAHF supported in 64-bit mode = true LZCNT advanced bit manipulation = true 3DNow! PREFETCH/PREFETCHW instructions = true brand = "Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz" L1 TLB/cache information: 2M/4M pages & L1 TLB (0x80000005/eax): instruction # entries = 0x0 (0) instruction associativity = 0x0 (0) data # entries = 0x0 (0) data associativity = 0x0 (0) L1 TLB/cache information: 4K pages & L1 TLB (0x80000005/ebx): instruction # entries = 0x0 (0) instruction associativity = 0x0 (0) data # entries = 0x0 (0) data associativity = 0x0 (0) L1 data cache information (0x80000005/ecx): line size (bytes) = 0x0 (0) lines per tag = 0x0 (0) associativity = 0x0 (0) size (KB) = 0x0 (0) L1 instruction cache information (0x80000005/edx): line size (bytes) = 0x0 (0) lines per tag = 0x0 (0) associativity = 0x0 (0) size (KB) = 0x0 (0) L2 TLB/cache information: 2M/4M pages & L2 TLB (0x80000006/eax): instruction # entries = 0x0 (0) instruction associativity = L2 off (0) data # entries = 0x0 (0) data associativity = L2 off (0) L2 TLB/cache information: 4K pages & L2 TLB (0x80000006/ebx): instruction # entries = 0x0 (0) instruction associativity = L2 off (0) data # entries = 0x0 (0) data associativity = L2 off (0) L2 unified cache information (0x80000006/ecx): line size (bytes) = 0x40 (64) lines per tag = 0x0 (0) associativity = 8-way (6) size (KB) = 0x100 (256) L3 cache information (0x80000006/edx): line size (bytes) = 0x0 (0) lines per tag = 0x0 (0) associativity = L2 off (0) size (in 512KB units) = 0x0 (0) Advanced Power Management Features (0x80000007/edx): temperature sensing diode = false frequency ID (FID) control = false voltage ID (VID) control = false thermal trip (TTP) = false thermal monitor (TM) = false software thermal control (STC) = false 100 MHz multiplier control = false hardware P-State control = false TscInvariant = true Physical Address and Linear Address Size (0x80000008/eax): maximum physical address bits = 0x27 (39) maximum linear (virtual) address bits = 0x30 (48) maximum guest physical address bits = 0x0 (0) Logical CPU cores (0x80000008/ecx): number of CPU cores - 1 = 0x0 (0) ApicIdCoreIdSize = 0x0 (0) (multi-processing synth): multi-core (c=4), hyper-threaded (t=2) (multi-processing method): Intel leaf 0xb (APIC widths synth): CORE_width=4 SMT_width=1 (APIC synth): PKG_ID=0 CORE_ID=0 SMT_ID=0 (synth) = Intel m3-7Y00 / i5-7Y00 / i7-7Y00 / i3-7000U / i5-7000U / i7-7000U (Kaby Lake), 14nm |
ubuntu coredump 생성하기 (0) | 2022.12.22 |
---|---|
리눅스 블루투스 유틸리티 bluez-tools (0) | 2022.11.07 |
ubuntu 22.04 LTS (0) | 2022.04.27 |
minicom stty (0) | 2022.04.25 |
sudo -k -K (0) | 2022.04.25 |
systemctl status 전체 로그 보기 (0) | 2022.11.30 |
---|---|
리눅스 경로 / 와 // 와 /// (0) | 2022.11.01 |
uvcdynctrl (0) | 2022.07.06 |
dmesg -w (0) | 2022.06.30 |
dmesg log_buf_len (0) | 2022.06.29 |
$ uvcdynctrl -h uvcdynctrl 0.2.4 Manage dynamic controls in uvcvideo Usage: uvcdynctrl [OPTIONS]... [VALUES]... -h, --help Print help and exit -V, --version Print version and exit -l, --list List available cameras -i, --import=filename Import dynamic controls from an XML file -a, --addctrl=vid Import dynamic controls for vid from default location -v, --verbose Enable verbose output (default=off) -d, --device=devicename Specify the device to use (default=`video0') -c, --clist List available controls -g, --get=control Retrieve the current control value -G, --get_raw=unit_id:selector Retrieve the current raw control value -s, --set=control Set a new control value (For negative values: -s 'My Control' -- -42) -S, --set_raw=unit_id:selector Set the current raw control value (value is a hex string of control size, default is little endian- '(BE)' prefix to change: -S 13:1 0x01100c or -S 13:1 '(BE)0x0c1001' ) -f, --formats List available frame formats -W, --save=filename Save device controls state to a file -L, --load=filename Load device controls state from a file |
2760p 내장 카메라, 로지텍 웹캠(HD Pro Webcam C920)
$ uvcdynctrl -c Listing available controls for device video0: Brightness Contrast Saturation Hue White Balance Temperature, Auto Gamma Power Line Frequency White Balance Temperature Sharpness Backlight Compensation Exposure, Auto Exposure (Absolute) Exposure, Auto Priority $ sudo uvcdynctrl -d /dev/video2 -c Listing available controls for device /dev/video2: Brightness Contrast Saturation White Balance Temperature, Auto Gain Power Line Frequency White Balance Temperature Sharpness Backlight Compensation Exposure, Auto Exposure (Absolute) Exposure, Auto Priority Pan (Absolute) Tilt (Absolute) Focus (absolute) Focus, Auto Zoom, Absolute LED1 Mode LED1 Frequency |
[링크 : https://coding-yoon.tistory.com/107]
[링크 : https://manpages.ubuntu.com/manpages/jammy/en/man1/uvcdynctrl.1.html]
리눅스 경로 / 와 // 와 /// (0) | 2022.11.01 |
---|---|
리눅스 프로세스 숨기기 (0) | 2022.08.31 |
dmesg -w (0) | 2022.06.30 |
dmesg log_buf_len (0) | 2022.06.29 |
bash set -e set -x (0) | 2022.06.22 |
kernel 3.5.0 이후 지원하는 기능으로
tail -f 로 보듯 상시 감시가 가능하다.
[링크 : https://superuser.com/questions/289239/is-it-possible-to-tail-f-the-output-of-dmesg]
리눅스 프로세스 숨기기 (0) | 2022.08.31 |
---|---|
uvcdynctrl (0) | 2022.07.06 |
dmesg log_buf_len (0) | 2022.06.29 |
bash set -e set -x (0) | 2022.06.22 |
linux cache clear (0) | 2022.02.11 |
에러 로그가 많이 쌓이면 초기 메시지가 사라지는데
그걸 방지하기 위해 dmesg가 저장될 용량을 늘릴수 있다고 한다.
[링크 : https://www.linuxtopia.org/online_books/linux_kernel/kernel_configuration/re07.html]
다만, 커널 인자인 만큼 grub나 uboot 등에서 설정해주어야 하는 함정이..
systemd.log_level=debug systemd.log_target=kmsg log_buf_len=15M |
uvcdynctrl (0) | 2022.07.06 |
---|---|
dmesg -w (0) | 2022.06.30 |
bash set -e set -x (0) | 2022.06.22 |
linux cache clear (0) | 2022.02.11 |
sort 컬럼 별 정렬하기 (0) | 2022.02.08 |