Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1301343

Re: [RFC PATCH] arm64: perf test: Improbe bp_signal

From Jiri Olsa <jolsa@redhat.com>
Newsgroups linux.kernel
Subject Re: [RFC PATCH] arm64: perf test: Improbe bp_signal
Date 2016-01-05 10:10 +0100
Message-ID <qNvMS-8om-11@gated-at.bofh.it> (permalink)
References <qNgEa-609-13@gated-at.bofh.it> <qNs2C-5ze-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jan 05, 2016 at 04:58:00AM +0000, Wang Nan wrote:

SNIP

>  	 * Following processing should happen:
> @@ -141,6 +203,21 @@ int test__bp_signal(int subtest __maybe_unused)
>  	 *   - fd1 event breakpoint hit -> count1 == 1
>  	 *   - SIGIO is delivered       -> overflows == 1
>  	 *   - fd2 event breakpoint hit -> count2 == 1
> +	 *   - SIGUSR1 is delivered     -> overflows_2 == 1  (nested signal)
> +	 *   - sig_handler_2 return
> +	 *   - sig_handler return
> +	 *   - fd3 event watchpoint hit -> count3 == 1       (wp and bp in one insn)
> +	 *   - SIGIO is delivered       -> overflows == 2
> +	 *   - fd2 event breakpoint hit -> count2 == 2
> +	 *   - SIGUSR1 is delivered     -> overflows_2 == 2
> +	 *   - sig_handler_2 return
> +	 *   - sig_handler return
> +	 *   - fd3 event watchpoint hit -> count3 == 2       (standalone wp)
> +	 *   - SIGIO is delivered       -> overflows = 3
> +	 *   - fd2 event breakpoint hit -> count2 == 3
> +	 *   - SIGUSR1 is delivered     -> overflows_2 == 3
> +	 *   - sig_handler_2 return
> +	 *   - sig_handler return

also each line in here could be prefixed with 'code action'
that led to the result on the line, like:


         * exec:              result:
         *
  	 * __test_function  - fd1 event breakpoint hit -> count1 == 1
         *                  - SIGIO is delivered       -> overflows == 1
         * sig_handler      - fd2 event breakpoint hit -> count2 == 1
         *                  - SIGUSR1 is delivered     -> overflows_2 == 1  (nested signal)
         *                  - sig_handler_2 return
         *                  - sig_handler return
         * incq (%rdi)      - fd3 event watchpoint hit -> count3 == 1       (wp and bp in one insn)
         *                  - SIGIO is delivered       -> overflows == 2


hum.. but it might take all the fun out of it ;-)

jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2] arm64: Store breakpoint single step state into pstate Will Deacon <will.deacon@arm.com> - 2016-01-04 18:00 +0100
  Re: [PATCH v2] arm64: Store breakpoint single step state into pstate "Wangnan (F)" <wangnan0@huawei.com> - 2016-01-05 02:50 +0100
  [RFC PATCH] arm64: perf test: Improbe bp_signal Wang Nan <wangnan0@huawei.com> - 2016-01-05 06:10 +0100
    Re: [RFC PATCH] arm64: perf test: Improbe bp_signal "Wangnan (F)" <wangnan0@huawei.com> - 2016-01-05 06:20 +0100
    Re: [RFC PATCH] arm64: perf test: Improbe bp_signal Jiri Olsa <jolsa@redhat.com> - 2016-01-05 10:00 +0100
    Re: [RFC PATCH] arm64: perf test: Improbe bp_signal Jiri Olsa <jolsa@redhat.com> - 2016-01-05 10:10 +0100
    Re: [RFC PATCH] arm64: perf test: Improbe bp_signal Jiri Olsa <jolsa@redhat.com> - 2016-01-05 10:10 +0100
    Re: [RFC PATCH] arm64: perf test: Improbe bp_signal Jiri Olsa <jolsa@redhat.com> - 2016-01-05 10:10 +0100
  Re: [PATCH v2] arm64: Store breakpoint single step state into pstate "Wangnan (F)" <wangnan0@huawei.com> - 2016-01-05 06:10 +0100
    Re: [PATCH v2] arm64: Store breakpoint single step state into pstate Will Deacon <will.deacon@arm.com> - 2016-01-12 18:10 +0100
      Re: [PATCH v2] arm64: Store breakpoint single step state into pstate xiakaixu <xiakaixu@huawei.com> - 2016-01-15 09:30 +0100
  [RFC PATCH v2] perf test: Improve bp_signal Wang Nan <wangnan0@huawei.com> - 2016-01-05 11:00 +0100
    Re: [RFC PATCH v2] perf test: Improve bp_signal Jiri Olsa <jolsa@redhat.com> - 2016-01-05 11:10 +0100

csiph-web