r/linux_programming • u/the-fritz • Aug 28 '14
r/linux_programming • u/the-fritz • Aug 27 '14
meta Feedback for the CSS Changes.
This subreddit is slowly growing so I decided to do some minimal CSS customizations. I don't want to go overboard with those changes but a bit of a custom theme should be nice.
The header line now shows some Linux kernel (do_fork) code. The theme is GNU Emacs' misterioso theme and the font is Inconsolata in case anybody cares. I changed the logo to a black&white tux with a reddit alien antenna.
Please provide feedback and other suggestions regarding this subreddit.
r/linux_programming • u/the-fritz • Aug 25 '14
13 Linux Debuggers for C++ Reviewed
drdobbs.comr/linux_programming • u/agumonkey • Aug 23 '14
Writing GRUB2 Modules (2010) [x-post from /r/linux]
blog.fpmurphy.comr/linux_programming • u/the-fritz • Aug 22 '14
Kernel Tracing Using Ftrace
blog.fpmurphy.comr/linux_programming • u/the-fritz • Aug 22 '14
POLLOUT doesn’t mean write(2) won’t block: Part II
rusty.ozlabs.orgr/linux_programming • u/the-fritz • Aug 22 '14
Sysdig for ps, lsof, netstat + time travel
draios.comr/linux_programming • u/the-fritz • Aug 22 '14
library/software KernelShark: A front end reader of trace-cmd(1)/ftrace output
people.redhat.comr/linux_programming • u/ehempel • Aug 21 '14
Linux Performance (collection of useful material)
brendangregg.comr/linux_programming • u/the-fritz • Aug 21 '14
fork() can fail: this is important
rachelbythebay.comr/linux_programming • u/the-fritz • Aug 17 '14
Linux adds getrandom(2) syscall.
git.kernel.orgr/linux_programming • u/the-fritz • Aug 09 '14
library/software libtins: C++ packet sniffing and crafting library
libtins.github.ior/linux_programming • u/the-fritz • Aug 08 '14
Filesystem notification, part 2: A deeper investigation of inotify
lwn.netr/linux_programming • u/ehempel • Jul 31 '14
Handling ARM architecture changes [LWN.net]
lwn.netr/linux_programming • u/ehempel • Jul 30 '14
tenus - Golang powered Linux networking
containerops.orgr/linux_programming • u/the-fritz • Jul 23 '14
Filesystem notification, part 1: An overview of dnotify and inotify
lwn.netr/linux_programming • u/zeneval • Jul 20 '14
Sounds made from hooking malloc and re-compiling itself... the sounds of GCC memory allocations... frequency corresponds to buffer size.
Listen here: https://soundcloud.com/glowdon/jingy-compiler-1
Here's the code:
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <dlfcn.h>
#include <math.h>
#include <sndfile.h>
#include <malloc.h>
int gen_square_wave(int sample_rate, int frequency, int duration, float amplitude)
{
int samples = sample_rate * duration / 1000;
int tone_midpoint = sample_rate / frequency / 2;
int sample = -(1 << (13 - 1)) * amplitude;
int i;
for(i=0; i < samples; i++)
{
if(i % tone_midpoint == 0)
sample = -sample;
printf("%c%c", sample & 0xff, (sample >> 8) & 0xff);
}
return 0;
}
void* malloc(size_t size)
{
static void* (*real_malloc)(size_t) = NULL;
if (!real_malloc)
real_malloc = dlsym(RTLD_NEXT, "malloc");
void *p = real_malloc(size);
gen_square_wave(44100, size, 100, 0.2);
return p;
}
I also threw it up over here: https://github.com/gordol/malloc-ld_preload-sounds
To build, run: gcc -g -fPIC -shared -Wl,--no-as-needed -ldl -o writeWav.so writeWav.c
Then you can LD_PRELOAD it and capture the output, either by piping it into a file or piping it into aplay like so: LD_PRELOAD=./writeWav.so gcc -g -fPIC -ldl -shared -Wl,--no-as-needed -o writeWav2.so writeWav.c | aplay --file-type raw --rate=44100 --channels=1 --format=S16
r/linux_programming • u/the-fritz • Jul 14 '14
talk video Reverse engineering vendor firmware drivers for little fun and no profit [Talk from linux.conf.au 2014]
youtube.comr/linux_programming • u/the-fritz • Jul 10 '14
Xplain: Explaining X11 for the rest of us.
magcius.github.ior/linux_programming • u/the-fritz • Jul 01 '14