tests: change netlink_protocol.test to trace sendto syscalls only
* tests/gen_tests.in (netlink_protocol): Replace %network with sendto. * tests/netlink_protocol.c (main): Update expected output.
This commit is contained in:
parent
5c8d11b682
commit
1274e27487
@ -184,7 +184,7 @@ munlockall -a13
|
||||
nanosleep -a20
|
||||
net-icmp_filter -e trace=getsockopt,setsockopt
|
||||
net-sockaddr -a24 -e trace=connect
|
||||
netlink_protocol -e trace=%network
|
||||
netlink_protocol -e trace=sendto
|
||||
newfstatat -a32 -v -P stat.sample -P /dev/full
|
||||
old_mmap -a11 -e trace=mmap
|
||||
oldfstat -a18 -v -P stat.sample
|
||||
|
@ -375,12 +375,8 @@ int main(void)
|
||||
if ((fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG)) == -1)
|
||||
perror_msg_and_skip("socket AF_NETLINK");
|
||||
|
||||
printf("socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG) = %d\n",
|
||||
fd);
|
||||
if (bind(fd, (struct sockaddr *) &addr, len))
|
||||
perror_msg_and_skip("bind");
|
||||
printf("bind(%d, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}"
|
||||
", %u) = 0\n", fd, len);
|
||||
|
||||
char *path;
|
||||
if (asprintf(&path, "/proc/self/fd/%u", fd) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user