Skip to content

Tag: linux

why this code isn’t working in bash?

I am using tail -f to fetch log file and output of log this command is input to grep command with search for “ERROR” string and output of grep is used to create/write into a temporary file(tmpLog) . command : logfile content Issue is , i am not getting content in tmpLog file , although it is creat…

Application build . (Swift on Ubuntu)

I am a total newbie to programming and Ubuntu and Swift is my first language to learn. I am learning with a book but I encountered a problem when I was supposed to build an application. Here is what I had to do: Make a new directory called PMExample so that’s easy mkdir PMExample and then go to this dir…

Kubernetes Docker OS parameters vs Host OS parameters

I am running NGINX and Tomcat on Docker containers (container OS is Red Hat linux) and deployed through Kubernetes pods. Host OS is Red Hat Linux. My query is which OS parameter will be effective – host OS or container OS? During performance tuning do I need to tune both OS or host OS parameters are eff…

Kernel API to get Physical RAM Offset

I’m writing a device driver (for Linux kernel 2.6.x) that interacts directly with physical RAM using physical addresses. For my device’s memory layout (according to the output of cat /proc/iomem), System RAM begins at physical address 0x80000000; however, this code may run on other devices with di…

Strange pointer position in the stack

I wrote this simple code: and I’ve disassembled it to see what the compiler does. Using objdump I obtain: I can understand everything except for the mov QWORD PTR [rbp-0x10],0x0, this correspond (I think)to p=NULL; but from mov QWORD PTR [rbp-0x8],rax I know that my pointer is on rbp-0x8 and it seems co…