Questions tagged [system-calls]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
3k views

What could be causing “interrupted system call” errors in various applications?

I'm running into some very weird problems on my MacBook Pro (Intel, 2020, MacOS 11.1). Various command fail, but inconsistently. Running the same command twice can lead to different results. Queries ...
0
votes
0answers
15 views

Windows Performance Recorder and UIforETW freezing Window 10 when I try to record traces

I'm experiencing frequent game crashes to desktop, due to graphics driver being reset, which seem to be a result of a malware. To verify my suspicion I'm trying to record syscall traces with UIforETW ...
0
votes
1answer
138 views

How to hook bash commands or syscalls in order to preserve extended file attributes?

I wrote a backupsystem depending on extended file attributes. Many editing programs (like vim) remove these attributes from the files they edit. My idea is to hook any bash command referencing a file, ...
4
votes
1answer
2k views

What can trigger a SIGPWR signal that interrupts a 'sendmsg' system call?

On a RHEL 6 host, I have a Cassandra server listening for TCP connections on localhost. In parallel, I have a client application that sends it requests. The client (C# Mono) uses sendmsg to send the ...
0
votes
2answers
1k views

Which address space is used in system calls? physical? or virtual?

Explanation There’s two kind of address space virtual and physical. On the physical model (typically used by the kernel) the memory is bounded and each address correspond to physical ones. The virtual ...
1
vote
0answers
635 views

why Linux 64 bits system calls table is different

I just looked on the net on linux system calls numbers, and I found different numbers whether it is a 32 bits or 64 bits linux version. Why did Linux change the ordering of system calls ?? wouldn't ...
3
votes
1answer
1k views

How does sleep system call work?

A process may ask the OS to pause it for 0.5 seconds, but how does that work? The CPU doesn't simply stop running for that 0.5 second as other programs work well simultaneously, so how do we pause ...
0
votes
1answer
205 views

Shell Command that Combines chmod and chgrp

Is there a combined variant for chmod and chgrp that sets both user and groups permissions in one single system call for each file? This is useful for increasing performance on slow data layers such ...
1
vote
0answers
319 views

getting error while adding a system call

I'm using Ubuntu 12.04(64bit) and installed kernel version linux-2.6.37.3. My device is ASUS x201ev net-book(64 bit). I'm providing the link of procedure i used. i edited unistd_64.h file also and ...
4
votes
2answers
1k views

Why is `csrss.exe` called every time I move the mouse?

After my windows xp sp3 boots and all cpu activity dimms, I observed what happens when I just move the mouse in circles on an empty spot on the desktop: First exporer.exe is called and then csrss.exe. ...
1
vote
2answers
113 views

Making the keyboard eject switch work

I am using Linux.My keyboard switch for ejecting the CDROM does not work though it displays an eject button on the screen. I need to make it work. I know ejecting a cdrom using system call is as ...
3
votes
3answers
727 views

Why is the setuid permission bit not set for mkdir in modern Unix systems?

Bach states the following: mkdir is a typical setuid program. Only a process with Effective UID root can create a folder. (Section 7.6, Page 229) I checked the permissions on it on Ubuntu 12.04, ...
8
votes
5answers
4k views

Linux equivalent to Mac OS X's fs_usage

Is there a Linux equivalent to the Mac OS X command fs_usage? According to the man page it does the following: "report system calls and page faults related to filesystem activity in real-time". I ...
0
votes
1answer
1k views

Interrupt Descriptor Table and System Call Table?

Anyone please help me find out the relation between these two. Read somewhere that "The IDT is initialized one first time by the BIOS routine but Linux does it one more time when it take control." ...
4
votes
1answer
1k views

Why do strace/truss sometimes 'fix' stuck processes?

Sometimes you have a stuck process that's been stuck for a while, and as soon as you go to poke at it with strace/truss just to see what's going on, it gets magically unstuck and continues to run! So ...
7
votes
2answers
2k views

Guidelines for troubleshooting high interrupt rate

Sample readings: high or above normal interrupt rate (at idle), at approximately 1505/sec Information obtained from Process Explorer and Kernrate System calls approximately 6132/sec Context switches ...