Questions tagged [dmesg]

37 questions
178
votes
12 answers

How do I convert dmesg timestamp to custom date format?

I am trying to understand the dmesg timestamp and find it hard to convert that to change it to java date/custom date format. Sample dmesg log: [14614.647880] airo(eth1): link lost (missed beacons) So how do I convert 14614.647880 to a standard…
ukanth
  • 2,718
  • 5
  • 28
  • 38
8
votes
2 answers

What is the difference between logcat vs. dmesg?

What log source is used by logcat (with default settings: adb shell logcat). Are dmesg logs included in logcat's output? If not, what's the difference between dmesg logs and logcat logs?
jgro
  • 173
  • 1
  • 1
  • 6
5
votes
1 answer

WiFi not working in Ubuntu20 on MacBookPro 13 (2020), dual booting, trinidad wifi drivers issue

After purchasing new equipment which is MacBook Pro 13 Catalina 10.15.7 4 x USB-C release year: 2020 model 16,2 I decided to install Ubuntu 20 as dual boot. Previously I installed Ubuntu from raw .iso but it has created too many problems with…
4
votes
2 answers

trap invalid opcode rip rsp

We see a couple of below mentioned messages in /var/log/messages for one of our application: Sep 18 03:24:23 kernel: application_name[14682] trap invalid opcode rip:f6c6e3ce rsp:ffc366bc error:0 ... Sep 18 03:19:35
Prakash
  • 41
  • 1
  • 1
  • 3
3
votes
0 answers

print_req_error: critical target error, dev sdb, sector 0

I have samsung disk after a while the device is found on /dev/sdb but not the partitions. The smartools is not able to make a test of the unit and the dmesg traces show the follow information about is not able to access sector 0. For me the problem…
2
votes
2 answers

Where does "Freeing unused kernel memory" come from?

I often see Freeing unused kernel memory: xxxK (......) from dmesg, but I can never find this log from kernel source code with the help of grep/rg. Where does it come from?
Chen Li
  • 4,824
  • 3
  • 28
  • 55
2
votes
0 answers

How to disable logging in dmesg (/proc/kmsg) for specific device/driver?

I am using a TechnoTrend TT-connect S2-3600 which is known for spamming dmesg (respectively /proc/kmsg) with the following errors: [ 8360.122449] pctv452e: I2C error -121; AA A1 CC 00 01 -> 55 a1 31 03 cc 00 00 [ 8360.135079] pctv452e: I2C error…
jalu
  • 87
  • 1
  • 12
2
votes
1 answer

printk messages not showing up in dmesg log

I'm developing a simple driver for fun, and I'm trying to debug it with printk messages. It seems that dmesg doesn't display the last printk message, and the only way to get it to show the last message is by doing another printk, which in turn is…
Matan Ras
  • 45
  • 1
  • 7
1
vote
1 answer

missing Linux /sys/kernel/debug/dynamic_debug , how to enable?

tl;dr I want to use Linux "Dynamic Debug" but the path /sys/kernel/debug/dynamic_debug/ is not found. I want to use the "Dynamic Debug" feature of Linux to enable debug messages for a particular kernel module (wireguard). To enable a kernel module…
JamesThomasMoon
  • 6,169
  • 7
  • 37
  • 63
1
vote
2 answers

How to parse kernel coredump for dmesg logs?

I want to read dmesg logs that are present in the kernel core file. The usual way is to make use of a utility like crash to open the core file with a corresponding vmlinux. If I am not wrong, reading the dmesg logs from a core file has no symbol…
Naveen
  • 7,944
  • 12
  • 78
  • 165
1
vote
0 answers

add dmesg logs to bugreport android

I am working in Android kernel, for some reason I need to add dmesg logs into bugreport so if I use adb bugreport I can get dmesg as well as other file inside bugreport.(suppose that I saved last dmesg in a persisted place)
1
vote
1 answer

Prevent application (iscsiadm) logging to dmesg?

I have an issue where running sudo iscsiadm -m discovery -t st -p IP -l logs to dmesg across all terminals on the server. The command is run from a java application, using: Runtime.getRuntime().exec("/bin/bash", "-c", "sudo iscsiadm -m discovery…
Kris Rice
  • 559
  • 1
  • 5
  • 23
1
vote
0 answers

Process got coredumped with sgno 11, no segfault record in dmesg

I have a process running on linux docker handling network requests.It got core dumped with signo 11 and generated the core dump file.But I can't see the segfault message in dmesg command.What is the possible reason?
music90
  • 11
  • 1
1
vote
1 answer

How to map block numbers to file names from the dmesg output resultant from vm.block_dump=1, if device is ext4?

tl;dr: I want to see/get the filenames that the reported block numbers on dmesg are part of, when vm.block_dump=1 example dmesg: bash(13515): READ block 5434824 on xvda3 (32 sectors) When eg. sudo sysctl -w vm.block_dump=1 or eg. echo '1' | sudo…
user10239615
1
vote
0 answers

Linux kernel networking ubuntu debug message not shown with printk/pr_debug

I have recompiled the Linux kernel on Ubuntu and now upgraded to 4.17.6. I need to modify the TCP/IP stack parts, in specific one of the congestion control algorithms (eg. Vegas). After successful recompilation to 4.17.6, I tried to modify the code…
nettech
  • 11
  • 2
1
2 3