Is there any way to catch all syscalls on Linux? The only solution I know of is using LD_PRELOAD à la fakeroot, but that only works for dynamically linked applications. Furthermore, this approach requires enumerating all syscalls which is something I'd like to avoid.
...
I would like to monitor the number of threads used by a specific jvm process on linux.
Is there an easy way to get this information without impacting the performance of the jvm process.
More specifically I am interested in the number of threads per state.
...
I have a lot of spare intel linux servers laying around (hundreds) and want to use them for a distributed file system in a web hosting and file sharing environment. This isn't for a HPC application, so high performance isn't critical. The main requirement is high availability, if one server goes offline, the data stored on it's hard dr...
On Linux (or Solaris) is there a better way than hand parsing /proc/self/maps repeatedly to figure out whether or not you can read, write or execute whatever is stored at one or more addresses in memory?
For instance, in Windows you have VirtualQuery.
In Linux, I can mprotect to change those values, but I can't read them back.
Furthe...
I have two Slackware Linux systems on which the POSIX semaphore sem_open() call fails with errno set to 38. Sample code to reproduce below (the code works fine on CentOS / RedHat).
Are there any kernel or system configuration options that could cause this? Other suggestions?
Systems with issue are Slackware 10.1.0 kernel 2.6.11 /lib/li...
I've got an application that loads .so files as plugins at startup, using dlopen()
The build environment is running on x86 hardware, but the application is being cross compiled for another platform.
It would be great if I could (as part of the automated build process) do a check to make sure that there aren't any unresolved symbols in ...
Our company is looking to integrate invoices into a new system we are developing.
We require some a solution to create a layout of the invoice and then convert to pdf.
We have considered just laying out the invoice in html/css then converting to pdf.
We have also considered using SVG->PDf conversion.
Both of these solutions integrate...
I have a shell script which copies a few files to the current directory, compresses them, and streams the compressed file to stdout.
On the client side I use plink to execute the script and stream stdin to a file.
This almost works.
It seems that the cp command outputs the file name being copied when its executed from inside the scrip...
Looking for a way to convert a dynamically linked executable to a static executable. Seems like it should be possible but man pages are turning up short and google's not helping either.
...
I'm in the process of planning an application that would make use of the "ADD Helper" plugin of Compiz-Fusion running on Linux. Since I'm just in the planning stages, I basically want to know if it is feasible to use the plugin in a call from an application.
The application would theoretically display a dialog box, and black out the re...
Hi all,
I am curerntly working in C/C++ in unix environment and new to linux environment. I would like to learn about linux OS and learn next level of programming language as C# for my career.
I decided to put linux on my laptop. I coose ubundu for linux. But i am not sure we can write, compile and run c# programing in linux environ...
Background: I have a kubuntu laptop right now that I can't use wirelessly, i.e. I haven't got wireless assistant installed. But I have a windows laptop that I can download the debian packages seperately on a USB memory stick.
How do I install a debian package on the computer locally?
...
We have a Linux application that makes use of OpenSSL's Python bindings and I suspect it is causing random crashes. Occasionally, we see it crash with the message "Python Fatal Error: GC Object already tracked," which would appear to be either a programming error on the part of the library, or a symptom of memory corruption. Is there any...
I want to create a library with a modified version of printf and then call LD_PRELOAD so when my program calls printf it uses my version. Can someone explain to me how to use LD_PRELOAD and if there is a something special I need to do in my code or my library?
...
I want to setup a statistics monitoring platform to watch a specific service, but I'm not quiet sure how to go about it. Processing the intercepted data isn't my concern, just how to go about it. One idea was to setup a proxy between the client application and the service so that all TCP traffic went first to my proxy, the proxy would ...
I've been trying to build subversion (on a limited account) for a long time but without any luck :(
The instructions I'm following: http://wiki.dreamhost.com/Subversion_Installation
Running this:
./configure --prefix=${RUN} --without-berkeley-db --with-ssl --with-zlib --enable-shared
Gives me this error:
checking for library contai...
Are there differences between the amount of syscalls in the major *NIX variants ?
Which syscalls would be supported universally ?
...
I'm writing a Linux kernel module that needs to open and read files. What's the best way to accomplish that?
...
Is there a problem using VMware on Windows to host a virtual linux box running iptables? I have a configuration that seems to work on physical hardware but is flaky under VMware.
I'm using VMware to run a virtual linux 2.6.24 machine on a Windows 2003 Server host. The linux application is essentially a NATting router that runs iptable...
I need to send packets from one host to another over a potentially lossy network. In order to minimize packet latency, I'm not considering TCP/IP. But, I wish to maximize the throughput uisng UDP. What should be the optimal size of UDP packet to use?
Here are some of my considerations:
The MTU size of the switches in the network is 15...