History log of /external/ltp/testcases/kernel/syscalls/profil/profil01.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d6d11d08678aac1ed2c370ea8e42e5f45aea07be 09-Mar-2015 Cyril Hrubis <chrubis@suse.cz> Introduce tst_parse_opts()

The pattern that was used in all testcases is:

const char *msg;

msg = parse_opts(...);
if (msg)
tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);

This change simplifies the steps to just calling:

tst_parse_opts(...);

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
164831b4ce1e8931a43b281ec3751f918170bea3 06-Mar-2015 Jiri Jaburek <jjaburek@redhat.com> syscalls/profil01: support 31-bit s390

Signed-off-by: Jiri Jaburek <jjaburek@redhat.com>
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
aabb8340f63ed31afe995fd97795e542dc68b93c 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Include usctest.h in test.h

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
f4fe5ab1c7aadde373040a9dfa91ab2b6f71a6bb 20-Aug-2014 Jan Stancek <jstancek@redhat.com> profil01: don't use address of function

This testcase is failing on ppc64 BE system, because
address of &test_profil does not reference beginning of code,
but entry in .opd section:
"This section contains the official procedure descriptors.
A pointer to a function shall reference a procedure descriptor
in this section."
which was at address larger than all .text of test_profil.

This patch is replacing address of function approach with gcc's
__builtin_return_address() to get current pc value.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
8ed20e6ce21b1ab367615b5fd5195f7ce6fbe1e8 18-Aug-2014 Jan Stancek <jstancek@redhat.com> profil01: rewrite testcase

The original testcase failed on ppc64le, because instead of using
_start address it reads value stored there, which caused that
calculated size of watched range (lotext, etext) was negative.

profil() syscall is deprecated for at least decade, so this really
excersises only glibc function. Since this test is in LTP for long
time and is quite simple, I chose to rewrite it, so we keep coverage.

Main changes are:
1. no arch ifdefs, test assumes that 16k buffer will cover all code
in test function
2. only single sanity test to check that profil records some data

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
c57fba5535abf457e33dd7a986b6c512d95cdef6 10-Apr-2014 Mike Frysinger <vapier@gentoo.org> testcases/kernel/syscalls: clean up old style prototypes

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
4548c6cf9bcdd96d8303caa4130ab638b61f8a30 19-Oct-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> Update FSF address

find . -type f -exec sed -i 's/675 Mass Ave, Cambridge, MA 02139, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;
find . -type f -exec sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
f7e467a96316d6486731676ce5edf703c7940eb6 23-Jan-2012 Carmelo AMOROSO <carmelo.amoroso@st.com> profile01: fix build using uClibc runtime

Fix a build error when __UCLIBC__ is defined (see log below)
by moving all headers inclusion and TCID definition on top of file
as they are required by 'tst_brkm' function too.

profil01.c: In function ‘main’:
profil01.c:311:2: warning: implicit declaration of function ‘tst_exit’
profil01.c:312:1: warning: control reaches end of non-void function
../../../../lib/libltp.a(tst_res.o): In function `cat_file':
/stlinux/amorosoc/git/stm/ltp/lib/tst_res.c:733: undefined reference to `TCID'
../../../../lib/libltp.a(tst_res.o): In function `tst_res':
/stlinux/amorosoc/git/stm/ltp/lib/tst_res.c:300: undefined reference to `TCID'
/stlinux/amorosoc/git/stm/ltp/lib/tst_res.c:284: undefined reference to `TCID'
/stlinux/amorosoc/git/stm/ltp/lib/tst_res.c:323: undefined reference to `TCID'
../../../../lib/libltp.a(tst_res.o): In function `tst_brk':
/stlinux/amorosoc/git/stm/ltp/lib/tst_res.c:634: undefined reference to `TCID'
collect2: ld returned 1 exit status

Signed-off-by: Francesco Rundo <francesco.rundo@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
1569799abe4296fc5ca50ede305c1eb2ac482422 18-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix some tests. Remove all externs to Tst_count.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
2c28215423293e443469a07ae7011135d058b671 16-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Style and conformance changes.

1. Strip all leading space.
2. Move tst_exit() to main().
3. Remove tst_exit() from cleanup().
4. Remove cluebat comments.
5. Reduce some unnecessary whitespace.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
df3eb16e38c6a163b0a7367c885679eed6140964 29-Nov-2010 Garrett Cooper <yanegomi@gmail.com> Deal with a lot of annoying style nits.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
56207cec7732e09c216c751c0b5f88a242bacae6 23-Mar-2009 subrata_modak <subrata_modak> Coding Syle Cleanups. Signed-Off-By: <michal.simek@petalogix.com>.
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
bdbaec51a423e715c2b03ed9e497e9a1fba6103e 26-Feb-2009 subrata_modak <subrata_modak> Clean Trailing Tab: Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
4bb656a129f7507823e9e6d6b98b1a02fd80ef89 26-Feb-2009 subrata_modak <subrata_modak> Clear Trailing Whitespace. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
43337a3cf6f8809647cf9fc6c0054241f44b1fb1 26-Feb-2009 subrata_modak <subrata_modak> Fix return(0) to return 0. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
eb49af1520682c8a72be2fb1da907cc664f5cb5a 15-Oct-2008 subrata_modak <subrata_modak> Adding support for mips64. Use 64 bit variable to store the 64 bit address. Tested on mips64 system running Cavium Networks Octeon chip, Linux 2.6.27. Signed-Off-By: "Malov, Vlad" <Vlad.Malov@caviumnetworks.com>.
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
a9f7340c481dad8f8070713789c9565dcee15802 26-May-2006 vapier <vapier> profil deals in u_short, not in short
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
d24831746165057f3aadd6636fba82cfec33cba9 24-Feb-2006 vapier <vapier> need to define _GNU_SOURCE before including features.h or sigset prototype is missed
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
55251d9f767e68f0871ab7b7e6787615e95b511e 14-Feb-2006 vapier <vapier> disable test for uClibc
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
cff4af016805c764c391c473d4c95b999dcdf148 11-Feb-2006 vapier <vapier> remove extraneous whitespace usage in tst_* functions
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
9ee3878d6950888488bc0fdaf2ab5b09c659e1f2 25-Aug-2004 mridge <mridge> Change to support arm arch address_oofset of program
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
ba7b68111ec7f255c74830466ef3b7517b68688d 18-May-2004 robbiew <robbiew> Applied fix patches from Susanne Wintenberger.
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
edacd77d34a263b7fbc7548d30fb19adfe511c5c 12-Jun-2003 robbiew <robbiew> Removed the ia64 #ifdef, b/c they use __WORDSIZE
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
fc0f7d3c8e72e13632bbd8cd4ffc69868fe94554 05-Jun-2003 robbiew <robbiew> Added code to handle powerpc64 and ia64 arch...which is different than s390x.
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
9f5858db24467758b8f2304478cea8b93ddafa1f 05-Jun-2003 robbiew <robbiew> Patch for 64bit arch was wrong....fixed it.
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
b544be11755deb37194d22c6e8a0bfd1d5b8e50a 20-May-2003 robbiew <robbiew> Applied powerpc64 patch created by Steve Munroe. See ltp Bug #740520.
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
345990d7443c8249c8fc20e45bf98195cab6e7a5 04-Apr-2003 robbiew <robbiew> warnings cleanup
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
dee367942c055f7b4e1c6fca2aaac3ba8a8443bd 05-Mar-2003 robbiew <robbiew> Applied patch sent by Chris Dearman:
Hi,
There is a problem building the CVS version of
testcases/kernel/syscalls/profil/profil01.c for MIPS. The MIPS startup
code does not have a _start. Instead it uses __start. The attached
patch fixes this in an ugly sort of way...

Chris
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
a70576c4834d89f937e46698fef4114736cce4d7 04-Mar-2003 robbiew <robbiew> Removed "extern int errno" lines and replaced with "#include <errno.h>"
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
14228de27701ddc0ec32a635983785f2705b2dd1 10-Jan-2003 robbiew <robbiew> Applied optimization patch from Sundar <vr_sundar@attbi.com>
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
31cba33587fc506d1038e25eed68546db81dc3b3 31-Dec-2002 robbiew <robbiew> Added copyright info
/external/ltp/testcases/kernel/syscalls/profil/profil01.c
4f33e5d9e04e142192ce28925bf4d22d97a22f75 31-Dec-2002 robbiew <robbiew> Added profil() test ported by Ananda Venkataraman <avenkat@us.ibm.com>
/external/ltp/testcases/kernel/syscalls/profil/profil01.c