Hello.
I've got a scrip for systemtap and Linux kernel, that check if physical memory
is filled by zero after process dies. The scrip is attached.
The probe is set in the free_pages_bulk function, which frees number of memory
pages using _free_one_page. I can't set probe in _free_one_page,
Hy!
I receive an nxge driver messages on console:
Aug 18 11:08:42 [hostname] nxge: NOTICE: nxge_ipp_eccue_valid_check:
rd_ptr = XXX wr_ptr = YYY
I find the bug description/correction at sun web page, and i know i
can ignore it.
I thinking about how can i delete from console only these messages
Hi Cni:
You may be able to use the strstr() subroutine (or any of its
siblings) to get what you want. Something like
#!/usr/sbin/dtrace -qs
#pragma D option destructive
syscall::write:entry
/execname == syslogd (self-class = copyinstr(arg1)) != NULL
You're actually asking multiple questions here, because in order
to verify if a particular operating system zero-fills memory pages
when they are freed from an address space, you'd need to first know
which kernel function is called to zero-fill the pages, right?
I created a simple DTrace script
Hi,
I am trying to convert and print fd from read/write calls into string
and it fails with below error.
dtrace: error on enabled probe ID 1 (ID 23: syscall::read:entry):
invalid address (0x0) in action #1
What am I missing ?
syscall::read:entry
/pid == $1 /
{
Not sure what you mean by FD as a string. If you are trying to print
the name of the file from the FD them you can use the fds[] array.
Something like
syscall::read:entry
/pid == $1 /
{
printf(Reading (%s) \n, fds[arg0].fi_pathname);
}
-Angelo
On Aug 18, 2009, at 4:27 PM,
I just need to print the file descriptor number as a string. I would
like to join fd and file name into one string and then aggregate on
reads/writes
reason I want to do this is, for sockets fi_pathname just shows up as
unknown - instead if I can get fd, I can do pfiles and get the socket
Why not just aggregate on the tuple fd, file name? Something like this:
syscall::read:entry
{
@c[arg0, fds[arg0].fi_pathname] = count();
}
If the output's unsatisfactory, you could always use a printa() in en
END clause to get it into the format you want.
Chad
On Tue, Aug 18, 2009 at
Yup, that will do. But, still I wonder why the typecast fails ?
-Original Message-
From: Chad Mynhier [mailto:cmynh...@gmail.com]
Sent: Tuesday, August 18, 2009 5:06 PM
To: Cherukupalli, Venkateshu
Cc: angelo.rajadu...@sun.com; dtrace-discuss@opensolaris.org
Subject: Re:
In C this would be done (non-standard) with itoa, or in a more standard way
using sprintf, neither of which exist in D.
Chip
-Original Message-
From: dtrace-discuss-boun...@opensolaris.org [mailto:dtrace-discuss-
boun...@opensolaris.org] On Behalf Of Jonathan Adams
Sent: Tuesday,
Similar to what Chip mentioned, you can use the built-in DTrace
subroutine lltostr().
Adam
On Aug 18, 2009, at 4:20 PM, Chip Bennett wrote:
In C this would be done (non-standard) with itoa, or in a more
standard way using sprintf, neither of which exist in D.
Chip
-Original
11 matches
Mail list logo