Btw, I thought I got a trace that looked like the one of cat by using dd obs=1 a couple of days ago, but I must have mixed up the trace files. dd obs=1 looks like:
read(0, "hello\n", 512) = 6 write(1, "h", 1) = 1 write(1, "e", 1) = 1 write(1, "l", 1) = 1 write(1, "l", 1) = 1 write(1, "o", 1) = 1 write(1, "\n", 1) = 1 read(0, "world\n", 512) = 6 write(1, "w", 1) = 1 write(1, "o", 1) = 1 write(1, "r", 1) = 1 write(1, "l", 1) = 1 write(1, "d", 1) = 1 write(1, "\n", 1) = 1
Btw, I thought I got a trace that looked like the one of cat by using dd obs=1 a couple of days ago, but I must have mixed up the trace files. dd obs=1 looks like:
read(0, "hello\n", 512) = 6
write(1, "h", 1) = 1
write(1, "e", 1) = 1
write(1, "l", 1) = 1
write(1, "l", 1) = 1
write(1, "o", 1) = 1
write(1, "\n", 1) = 1
read(0, "world\n", 512) = 6
write(1, "w", 1) = 1
write(1, "o", 1) = 1
write(1, "r", 1) = 1
write(1, "l", 1) = 1
write(1, "d", 1) = 1
write(1, "\n", 1) = 1