summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/bz10475.stp
blob: 160263a5aeea03a15387f80b56a0b39fc134a0b5 (plain)
1
2
3
4
5
6
7
8
9
#! stap -p2
// bz10475: pointer-array confused about array element size

// struct file *filp_open(int dfd, const char *filename, int flags, int mode)
probe kernel.function("filp_open")
{
    // check array access on a "complex" pointer type
    println($filename[0])
}